Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated usages of boost #72

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

timonegk
Copy link
Contributor

  • boost::progress_display is deprecated and replaced by boost::timer::progress_display
  • std::shared_ptr can be used instead of boost::shared_ptr because the project is using C++ >= 11

@timonegk
Copy link
Contributor Author

Apparently the change is not in Ubuntu focal so this has to wait until focal is EOL.

Comment on lines -22 to +21
#include <boost/progress.hpp>
#include <boost/timer/progress_display.hpp>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could probably do something like this to continue supporting focal but fix the deprecation problem

#if __has_include(<boost/timer/progress_display.hpp>)
#include <boost/timer/progress_display.hpp>
#else
#include <boost/progress.hpp>
#endif

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The namespace also changed, so the fix is not as easy, unfortunately

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. I was hoping we could use an alias, but it appears that timer is a class in focal, so this won't be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants