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 39a3b04 commit f4fc990
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions trademgen/batches/trademgen_generateDemand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics.hpp>
// Boost Timer (progress display)
#if BOOST_VERSION_MACRO >= 107200
#include <boost/timer/progress_display.hpp>
#else // if BOOST_VERSION_MACRO >= 107200
#include <boost/progress.hpp>
#endif // ifBOOST_VERSION_MACRO >= 107200
// StdAir
#include <stdair/stdair_basic_types.hpp>
#include <stdair/basic/BasConst_General.hpp>
Expand Down Expand Up @@ -292,7 +296,11 @@ void generateDemand (TRADEMGEN::TRADEMGEN_Service& ioTrademgenService,
ioTrademgenService.getExpectedTotalNumberOfRequestsToBeGenerated();

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

Expand Down

0 comments on commit f4fc990

Please sign in to comment.