Skip to content

Commit

Permalink
Use new location of boost::progress_display if available (#3546)
Browse files Browse the repository at this point in the history
  • Loading branch information
v4hn authored Dec 18, 2023
1 parent d8e7562 commit d03fade
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions moveit_ros/benchmarks/src/BenchmarkExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,16 @@
#include <tf2_eigen/tf2_eigen.h>

#include <boost/regex.hpp>
// TODO: Remove if boost >= 1.72 (https://github.com/boostorg/timer/issues/12)
#define BOOST_ALLOW_DEPRECATED_HEADERS 1

#if __has_include(<boost/timer/progress_display.hpp>)
#include <boost/timer/progress_display.hpp>
#else
// boost < 1.72
#define BOOST_TIMER_ENABLE_DEPRECATED 1
#include <boost/progress.hpp>
#undef BOOST_ALLOW_DEPRECATED_HEADERS
#undef BOOST_TIMER_ENABLE_DEPRECATED
#endif

#include <boost/math/constants/constants.hpp>
#include <boost/filesystem.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
Expand Down

0 comments on commit d03fade

Please sign in to comment.