Skip to content

Commit

Permalink
[Dev] boost::timer::progress_display is available only from Boost 1.72
Browse files Browse the repository at this point in the history
  • Loading branch information
da115115 committed Jun 1, 2020
1 parent e7a0fe8 commit 39a3b04
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions trademgen/python/pytrademgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
#include <boost/accumulators/statistics/max.hpp>
#include <boost/accumulators/statistics/variance.hpp>
// Boost Timer (progress display)
#if BOOST_VERSION_MACRO >= 107200
#include <boost/timer/progress_display.hpp>
#else // BOOST_VERSION_MACRO >= 107200
#include <boost/progress.hpp>
#endif // BOOST_VERSION_MACRO >= 107200
// StdAir
#include <stdair/stdair_basic_types.hpp>
#include <stdair/basic/ProgressStatusSet.hpp>
Expand Down Expand Up @@ -119,7 +123,11 @@ namespace TRADEMGEN {
_trademgenService->getExpectedTotalNumberOfRequestsToBeGenerated();

// Initialise the (Boost) progress display object
#if BOOST_VERSION_MACRO >= 107200
boost::timer::progress_display
#else // BOOST_VERSION_MACRO >= 107200
boost::progress_display
#endif // BOOST_VERSION_MACRO >= 107200
lProgressDisplay (lExpectedNbOfEventsToBeGenerated * iNbOfRuns);

for (NbOfRuns_T runIdx = 1; runIdx <= iNbOfRuns; ++runIdx) {
Expand Down

0 comments on commit 39a3b04

Please sign in to comment.