functional.hpp 878 B

12345678910111213141516171819202122232425262728
  1. // (C) Copyright John Maddock 2005.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. //
  6. // The aim of this header is just to include <functional> but to do
  7. // so in a way that does not result in recursive inclusion of
  8. // the Boost TR1 components if boost/tr1/tr1/functional is in the
  9. // include search path. We have to do this to avoid circular
  10. // dependencies:
  11. //
  12. #ifndef BOOST_CONFIG_FUNCTIONAL
  13. # define BOOST_CONFIG_FUNCTIONAL
  14. # ifndef BOOST_TR1_NO_RECURSION
  15. # define BOOST_TR1_NO_RECURSION
  16. # define BOOST_CONFIG_NO_FUNCTIONAL_RECURSION
  17. # endif
  18. # include <functional>
  19. # ifdef BOOST_CONFIG_NO_FUNCTIONAL_RECURSION
  20. # undef BOOST_TR1_NO_RECURSION
  21. # undef BOOST_CONFIG_NO_FUNCTIONAL_RECURSION
  22. # endif
  23. #endif