3 * Boost bind pull the placeholders, _1, _2, ... into global
4 * namespace. This can conflict with the C++03 TR1 and C++11
5 * std::placeholders. This header provides a workaround for
9 * Copyright 2012 Christoph Koke
10 * Copyright 2012 Karsten Ahnert
12 * Distributed under the Boost Software License, Version 1.0.
13 * (See accompanying file LICENSE_1_0.txt or
14 * copy at http://www.boost.org/LICENSE_1_0.txt)
17 #ifndef BOOST_NUMERIC_ODEINT_UTIL_BIND_HPP_INCLUDED
18 #define BOOST_NUMERIC_ODEINT_UTIL_BIND_HPP_INCLUDED
21 #include <boost/numeric/odeint/config.hpp>
24 #if BOOST_NUMERIC_ODEINT_CXX11
27 #define BOOST_BIND_NO_PLACEHOLDERS
28 #include <boost/bind.hpp>
36 #if BOOST_NUMERIC_ODEINT_CXX11
39 using namespace ::std::placeholders;
44 // unnamed namespace to avoid multiple declarations (#138)
50 // using ::boost::bind;
67 // the following is the suggested way. Unfortunately it does not work with all compilers.
69 #ifdef BOOST_NO_CXX11_HDR_FUNCTIONAL
70 #include <boost/bind.hpp>
82 #ifdef BOOST_NO_CXX11_HDR_FUNCTIONAL
91 using namespace ::std::placeholders;
101 #endif // BOOST_NUMERIC_ODEINT_UTIL_BIND_HPP_INCLUDED