adl_barrier.hpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef BOOST_MPL_AUX_ADL_BARRIER_HPP_INCLUDED
  2. #define BOOST_MPL_AUX_ADL_BARRIER_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2002-2004
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/mpl for documentation.
  10. // $Id$
  11. // $Date$
  12. // $Revision$
  13. #include <boost/mpl/aux_/config/adl.hpp>
  14. #include <boost/mpl/aux_/config/gcc.hpp>
  15. #include <boost/mpl/aux_/config/workaround.hpp>
  16. #if !defined(BOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE)
  17. # define BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE mpl_
  18. # define BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN namespace mpl_ {
  19. # define BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE }
  20. # define BOOST_MPL_AUX_ADL_BARRIER_DECL(type) \
  21. namespace boost { namespace mpl { \
  22. using ::BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::type; \
  23. } } \
  24. /**/
  25. #if !defined(BOOST_MPL_PREPROCESSING_MODE)
  26. namespace BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE { namespace aux {} }
  27. namespace boost { namespace mpl { using namespace BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE;
  28. namespace aux { using namespace BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::aux; }
  29. }}
  30. #endif
  31. #else // BOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE
  32. # define BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE boost::mpl
  33. # define BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN namespace boost { namespace mpl {
  34. # define BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE }}
  35. # define BOOST_MPL_AUX_ADL_BARRIER_DECL(type) /**/
  36. #endif
  37. #endif // BOOST_MPL_AUX_ADL_BARRIER_HPP_INCLUDED