adl.hpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef BOOST_MPL_AUX_CONFIG_ADL_HPP_INCLUDED
  2. #define BOOST_MPL_AUX_CONFIG_ADL_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/msvc.hpp>
  14. #include <boost/mpl/aux_/config/intel.hpp>
  15. #include <boost/mpl/aux_/config/gcc.hpp>
  16. #include <boost/mpl/aux_/config/workaround.hpp>
  17. // agurt, 25/apr/04: technically, the ADL workaround is only needed for GCC,
  18. // but putting everything expect public, user-specializable metafunctions into
  19. // a separate global namespace has a nice side effect of reducing the length
  20. // of template instantiation symbols, so we apply the workaround on all
  21. // platforms that can handle it
  22. #if !defined(BOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE) \
  23. && ( BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1400)) \
  24. || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) \
  25. || BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x840)) \
  26. || BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3202)) \
  27. || BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, BOOST_TESTED_AT(810)) \
  28. )
  29. # define BOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE
  30. #endif
  31. #endif // BOOST_MPL_AUX_CONFIG_ADL_HPP_INCLUDED