The class progress_display has definition and implementation in progress.hpp.
The relevant example is in the following code snippet.

Qt pro file:

TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt

INCLUDEPATH += /usr/local/Cellar/boost/1.66.0/include/

SOURCES += \
        main.cpp

main.cpp:

#include <iostream>
#include <boost/progress.hpp>
#include <vector>
#include <fstream>
using namespace std;

int main(){
    vector<string> vt(100);
    ofstream outStream("./txt");
    boost::progress_display pd(vt.size());
    for(auto &it : vt)
    {
        outStream<<it<<endl;
        usleep(20000);
        ++pd;
    }
    return 0;
}


0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
A prohibited operation
0
Would love your thoughts, please comment.x
()
x