Chris@16: /* Chris@16: * [begin_description] Chris@16: * Boost bind pull the placeholders, _1, _2, ... into global Chris@16: * namespace. This can conflict with the C++03 TR1 and C++11 Chris@16: * std::placeholders. This header provides a workaround for Chris@16: * this problem. Chris@16: * [end_description] Chris@16: * Chris@16: * Copyright 2012 Christoph Koke Chris@16: * Chris@16: * Distributed under the Boost Software License, Version 1.0. Chris@16: * (See accompanying file LICENSE_1_0.txt or Chris@16: * copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: * */ Chris@16: Chris@16: #ifndef BOOST_NUMERIC_ODEINT_UTIL_BIND_HPP_INCLUDED Chris@16: #define BOOST_NUMERIC_ODEINT_UTIL_BIND_HPP_INCLUDED Chris@16: Chris@16: Chris@16: #include Chris@16: Chris@16: Chris@16: #if BOOST_NUMERIC_ODEINT_CXX11 Chris@16: #include Chris@16: #else Chris@16: #include Chris@16: #endif Chris@16: Chris@16: namespace boost { Chris@16: namespace numeric { Chris@16: namespace odeint { Chris@16: namespace detail { Chris@16: Chris@16: #if BOOST_NUMERIC_ODEINT_CXX11 Chris@16: Chris@16: using ::std::bind; Chris@16: using namespace ::std::placeholders; Chris@16: Chris@16: Chris@16: #else Chris@16: Chris@16: using ::boost::bind; Chris@16: using ::_1; Chris@16: using ::_2; Chris@16: Chris@16: #endif Chris@16: Chris@16: } Chris@16: } Chris@16: } Chris@16: } Chris@16: Chris@16: #endif // BOOST_NUMERIC_ODEINT_UTIL_BIND_HPP_INCLUDED