annotate DEPENDENCIES/generic/include/boost/numeric/odeint/util/bind.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children c530137014c0
rev   line source
Chris@16 1 /*
Chris@16 2 * [begin_description]
Chris@16 3 * Boost bind pull the placeholders, _1, _2, ... into global
Chris@16 4 * namespace. This can conflict with the C++03 TR1 and C++11
Chris@16 5 * std::placeholders. This header provides a workaround for
Chris@16 6 * this problem.
Chris@16 7 * [end_description]
Chris@16 8 *
Chris@16 9 * Copyright 2012 Christoph Koke
Chris@16 10 *
Chris@16 11 * Distributed under the Boost Software License, Version 1.0.
Chris@16 12 * (See accompanying file LICENSE_1_0.txt or
Chris@16 13 * copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 14 * */
Chris@16 15
Chris@16 16 #ifndef BOOST_NUMERIC_ODEINT_UTIL_BIND_HPP_INCLUDED
Chris@16 17 #define BOOST_NUMERIC_ODEINT_UTIL_BIND_HPP_INCLUDED
Chris@16 18
Chris@16 19
Chris@16 20 #include <boost/numeric/odeint/config.hpp>
Chris@16 21
Chris@16 22
Chris@16 23 #if BOOST_NUMERIC_ODEINT_CXX11
Chris@16 24 #include <type_traits>
Chris@16 25 #else
Chris@16 26 #include <boost/bind.hpp>
Chris@16 27 #endif
Chris@16 28
Chris@16 29 namespace boost {
Chris@16 30 namespace numeric {
Chris@16 31 namespace odeint {
Chris@16 32 namespace detail {
Chris@16 33
Chris@16 34 #if BOOST_NUMERIC_ODEINT_CXX11
Chris@16 35
Chris@16 36 using ::std::bind;
Chris@16 37 using namespace ::std::placeholders;
Chris@16 38
Chris@16 39
Chris@16 40 #else
Chris@16 41
Chris@16 42 using ::boost::bind;
Chris@16 43 using ::_1;
Chris@16 44 using ::_2;
Chris@16 45
Chris@16 46 #endif
Chris@16 47
Chris@16 48 }
Chris@16 49 }
Chris@16 50 }
Chris@16 51 }
Chris@16 52
Chris@16 53 #endif // BOOST_NUMERIC_ODEINT_UTIL_BIND_HPP_INCLUDED