1 // Copyright (C) 2013 Vicente J. Botet Escriba 2 // 3 // Distributed under the Boost Software License, Version 1.0. (See accompanying 4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5 // 6 // 2013/10 Vicente J. Botet Escriba 7 // Creation. 8 9 #ifndef BOOST_CSBL_FUNCTIONAL_HPP 10 #define BOOST_CSBL_FUNCTIONAL_HPP 11 12 #include <boost/config.hpp> 13 14 #include <functional> 15 16 #if defined BOOST_THREAD_USES_BOOST_FUNCTIONAL || defined BOOST_NO_CXX11_HDR_FUNCTIONAL || defined BOOST_NO_CXX11_RVALUE_REFERENCES 17 #ifndef BOOST_THREAD_USES_BOOST_FUNCTIONAL 18 #define BOOST_THREAD_USES_BOOST_FUNCTIONAL 19 #endif 20 #include <boost/function.hpp> 21 #endif 22 23 namespace boost 24 { 25 namespace csbl 26 { 27 #if defined BOOST_THREAD_USES_BOOST_FUNCTIONAL 28 using ::boost::function; 29 #else 30 // D.8.1, base (deprecated): 31 // 20.9.3, reference_wrapper: 32 // 20.9.4, arithmetic operations: 33 // 20.9.5, comparisons: 34 // 20.9.6, logical operations: 35 // 20.9.7, bitwise operations: 36 // 20.9.8, negators: 37 // 20.9.9, bind: 38 // D.9, binders (deprecated): 39 // D.8.2.1, adaptors (deprecated): 40 // D.8.2.2, adaptors (deprecated): 41 // 20.9.10, member function adaptors: 42 // 20.9.11 polymorphic function wrappers: 43 using ::std::function; 44 // 20.9.12, hash function primary template: 45 #endif 46 47 } 48 } 49 #endif // header 50