Skip to content

Commit

Permalink
Adding fix for boost empty_deleter
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnilh committed Oct 28, 2018
1 parent 0aba646 commit 06cdb18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usermode/library/pmalloc/include/alps/src/common/log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <boost/log/trivial.hpp>
#include <boost/log/utility/setup/file.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/utility/empty_deleter.hpp>
#include <boost/utility/empty_deleter.hpp>
// #include <boost/utility/empty_deleter.hpp>
#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>
Expand Down Expand Up @@ -64,7 +64,7 @@ void init_log(const DebugOptions& debug_options)

// add "console" output stream to our sink
// we have to provide an empty deleter to avoid destroying the global stream object
boost::shared_ptr< std::ostream > stream(&std::clog, boost::log::v2_mt_posix::empty_deleter());
boost::shared_ptr< std::ostream > stream(&std::clog, boost::empty_deleter());
sink->locked_backend()->add_stream(stream);

// specify the format of the log message
Expand Down

0 comments on commit 06cdb18

Please sign in to comment.