Merge pull request #246 from rolk/246_bind
Use boost::bind instead of std::bind to compile with C++03
This commit is contained in:
@@ -16,7 +16,7 @@ find_opm_package (
|
||||
"dune-common"
|
||||
|
||||
# dependencies
|
||||
"CXX11Features REQUIRED;
|
||||
"CXX11Features;
|
||||
BLAS REQUIRED;
|
||||
LAPACK REQUIRED;
|
||||
MPI
|
||||
|
||||
@@ -19,7 +19,7 @@ find_opm_package (
|
||||
# TODO: we should probe for all the HAVE_* values listed below;
|
||||
# however, we don't actually use them in our implementation, so
|
||||
# we just include them to forward here in case anyone else does
|
||||
"CXX11Features REQUIRED;
|
||||
"CXX11Features;
|
||||
dune-common REQUIRED
|
||||
"
|
||||
# header to search for
|
||||
|
||||
@@ -19,7 +19,7 @@ find_opm_package (
|
||||
# TODO: we should probe for all the HAVE_* values listed below;
|
||||
# however, we don't actually use them in our implementation, so
|
||||
# we just include them to forward here in case anyone else does
|
||||
"CXX11Features REQUIRED;
|
||||
"CXX11Features;
|
||||
dune-common REQUIRED;
|
||||
dune-geometry REQUIRED
|
||||
"
|
||||
|
||||
@@ -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