/Src/Dependencies/Boost/boost/mpl/aux_/nested_type_wknd.hpp

http://hadesmem.googlecode.com/ · C++ Header · 48 lines · 25 code · 11 blank · 12 comment · 3 complexity · 9582ad4ff82e6b975a377a6711eed206 MD5 · raw file

  1. #ifndef BOOST_MPL_AUX_NESTED_TYPE_WKND_HPP_INCLUDED
  2. #define BOOST_MPL_AUX_NESTED_TYPE_WKND_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2000-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: nested_type_wknd.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
  11. // $Date: 2008-10-11 17:19:02 +1100 (Sat, 11 Oct 2008) $
  12. // $Revision: 49267 $
  13. #include <boost/mpl/aux_/config/gcc.hpp>
  14. #include <boost/mpl/aux_/config/workaround.hpp>
  15. #if BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, BOOST_TESTED_AT(0x0302)) \
  16. || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x561)) \
  17. || BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x530)) \
  18. || BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x840))
  19. namespace boost { namespace mpl { namespace aux {
  20. template< typename T > struct nested_type_wknd
  21. : T::type
  22. {
  23. };
  24. }}}
  25. #if BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x840))
  26. # define BOOST_MPL_AUX_NESTED_TYPE_WKND(T) \
  27. aux::nested_type_wknd<T> \
  28. /**/
  29. #else
  30. # define BOOST_MPL_AUX_NESTED_TYPE_WKND(T) \
  31. ::boost::mpl::aux::nested_type_wknd<T> \
  32. /**/
  33. #endif
  34. #else // !BOOST_MPL_CFG_GCC et al.
  35. # define BOOST_MPL_AUX_NESTED_TYPE_WKND(T) T::type
  36. #endif
  37. #endif // BOOST_MPL_AUX_NESTED_TYPE_WKND_HPP_INCLUDED