Use boost::bind instead of std::bind to compile with C++03
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/function.hpp>
|
||||
#include <functional> // bind
|
||||
#include <boost/bind.hpp>
|
||||
#include <vector>
|
||||
|
||||
struct UnstructuredGrid;
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Opm {
|
||||
|
||||
template <typename T, void (T::*callback)()>
|
||||
inline void SimulatorIncompTwophase::connect_timestep (T& t) {
|
||||
connect_timestep_impl (boost::function0<void> (std::bind (callback, t)));
|
||||
connect_timestep_impl (boost::function0<void> (boost::bind (callback, t)));
|
||||
}
|
||||
|
||||
} /* namespace Opm */
|
||||
|
||||
Reference in New Issue
Block a user