mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-16 04:18:51 +08:00
Changed MultiProgress into a template container class
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include <indicators/progress_bar.hpp>
|
||||
#include <indicators/multi_progress.hpp>
|
||||
|
||||
int main() {
|
||||
@@ -38,7 +39,7 @@ int main() {
|
||||
bar3.show_remaining_time();
|
||||
bar3.set_prefix_text("Progress Bar #3 ");
|
||||
|
||||
indicators::MultiProgress<3> bars;
|
||||
indicators::MultiProgress<indicators::ProgressBar, 3> bars;
|
||||
bars.add_progress_bar(bar1);
|
||||
bars.add_progress_bar(bar2);
|
||||
bars.add_progress_bar(bar3);
|
||||
|
||||
Reference in New Issue
Block a user