'How do I upgrade boost progress?
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?
Solution 1:[1]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rudy Albachten |
