Closed nickhuangxinyu closed 2 years ago
int a = 3;
indicators::MultiProgress<indicators::ProgressBar, a> bars;
The above is not possible in C++. MultiProgress
is designed for the case where you know the number of progress bars at compile time.
For all other cases, I recommend you use DynamicProgress
This is exactly what I was trying to do, I considered using processor directives, I would appreciate this feature.
I see the multiprogress construct method as:
indicators::MultiProgress<indicators::ProgressBar, 3> bars;
but I want to init it using a variable, like this:Can I achieve this? i think dynamic_process has good method like push_back?