functional.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #ifndef BOOST_CSBL_FUNCTIONAL_HPP
  9. #define BOOST_CSBL_FUNCTIONAL_HPP
  10. #include <boost/config.hpp>
  11. #include <functional>
  12. #if defined BOOST_THREAD_USES_BOOST_FUNCTIONAL || defined BOOST_NO_CXX11_HDR_FUNCTIONAL || defined BOOST_NO_CXX11_RVALUE_REFERENCES
  13. #ifndef BOOST_THREAD_USES_BOOST_FUNCTIONAL
  14. #define BOOST_THREAD_USES_BOOST_FUNCTIONAL
  15. #endif
  16. #include <boost/function.hpp>
  17. #endif
  18. namespace boost
  19. {
  20. namespace csbl
  21. {
  22. #if defined BOOST_THREAD_USES_BOOST_FUNCTIONAL
  23. using ::boost::function;
  24. #else
  25. // D.8.1, base (deprecated):
  26. // 20.9.3, reference_wrapper:
  27. // 20.9.4, arithmetic operations:
  28. // 20.9.5, comparisons:
  29. // 20.9.6, logical operations:
  30. // 20.9.7, bitwise operations:
  31. // 20.9.8, negators:
  32. // 20.9.9, bind:
  33. // D.9, binders (deprecated):
  34. // D.8.2.1, adaptors (deprecated):
  35. // D.8.2.2, adaptors (deprecated):
  36. // 20.9.10, member function adaptors:
  37. // 20.9.11 polymorphic function wrappers:
  38. using ::std::function;
  39. // 20.9.12, hash function primary template:
  40. #endif
  41. }
  42. }
  43. #endif // header