Skip to content

Commit

Permalink
Replace deprecated boost::progress_display with boost::timer::progres…
Browse files Browse the repository at this point in the history
…s_display
  • Loading branch information
timonegk committed Apr 10, 2024
1 parent 0d1d854 commit c7e67cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/reach/plugins/boost_progress_console_logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <reach/interfaces/logger.h>

#include <boost/shared_ptr.hpp>
#include <boost/progress.hpp>
#include <boost/timer/progress_display.hpp>
#include <mutex>

namespace reach
Expand All @@ -39,7 +39,7 @@ class BoostProgressConsoleLogger : public Logger

protected:
mutable std::mutex mutex_;
mutable boost::shared_ptr<boost::progress_display> display_;
mutable boost::shared_ptr<boost::timer::progress_display> display_;
};

struct BoostProgressConsoleLoggerFactory : public LoggerFactory
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/boost_progress_console_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ BoostProgressConsoleLogger::BoostProgressConsoleLogger() : display_(nullptr)
void BoostProgressConsoleLogger::setMaxProgress(unsigned long max_progress)
{
std::lock_guard<std::mutex> lock{ mutex_ };
display_ = boost::make_shared<boost::progress_display>(max_progress);
display_ = boost::make_shared<boost::timer::progress_display>(max_progress);
}

void BoostProgressConsoleLogger::printProgress(unsigned long progress) const
Expand Down

0 comments on commit c7e67cc

Please sign in to comment.