Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I upgrade boost progress?

Tags:

c++

boost

Version 1.71.0 of boost/progress.hpp warns me:

include/boost/timer.hpp:21:98: note: #pragma message: This header is deprecated. 
Use the facilities in <boost/timer/timer.hpp> instead.
BOOST_HEADER_DEPRECATED( "the facilities in <boost/timer/timer.hpp>" )

But when I look in boost/timer.hpp there's no obvious path to upgrade, since there is no boost::progress_display class.

In what way do the Boost folks intend for me to circumnavigate the deprecation of progress.hpp, other than rewriting it?

like image 422
Richard Avatar asked Aug 19 '19 20:08

Richard


1 Answers

There's not a good solution today. Your choices are:

  • use an older boost that doesn't have the deprecation warning
  • ignore the warning
  • write a replacement
  • wait for boost 1.72 and use: #include <boost/timer/progress_display.hpp>

I ran into the same issue and found this summary: https://github.com/boostorg/timer/issues/12

like image 74
Rudy Albachten Avatar answered Oct 29 '22 02:10

Rudy Albachten