workaround.hpp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost
  4. // Software License, Version 1.0. (See accompanying file
  5. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // See http://www.boost.org/libs/container for documentation.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. #ifndef BOOST_CONTAINER_DETAIL_WORKAROUND_HPP
  11. #define BOOST_CONTAINER_DETAIL_WORKAROUND_HPP
  12. #include <boost/container/detail/config_begin.hpp>
  13. #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)\
  14. && !defined(BOOST_INTERPROCESS_DISABLE_VARIADIC_TMPL)
  15. #define BOOST_CONTAINER_PERFECT_FORWARDING
  16. #endif
  17. #if defined(BOOST_NO_CXX11_NOEXCEPT)
  18. #if defined(BOOST_MSVC)
  19. #define BOOST_CONTAINER_NOEXCEPT throw()
  20. #else
  21. #define BOOST_CONTAINER_NOEXCEPT
  22. #endif
  23. #define BOOST_CONTAINER_NOEXCEPT_IF(x)
  24. #else
  25. #define BOOST_CONTAINER_NOEXCEPT noexcept
  26. #define BOOST_CONTAINER_NOEXCEPT_IF(x) noexcept(x)
  27. #endif
  28. #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && defined(__GXX_EXPERIMENTAL_CXX0X__)\
  29. && (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ < 40700)
  30. #define BOOST_CONTAINER_UNIMPLEMENTED_PACK_EXPANSION_TO_FIXED_LIST
  31. #endif
  32. #if !defined(BOOST_FALLTHOUGH)
  33. #define BOOST_CONTAINER_FALLTHOUGH
  34. #else
  35. #define BOOST_CONTAINER_FALLTHOUGH BOOST_FALLTHOUGH;
  36. #endif
  37. //Macros for documentation purposes. For code, expands to the argument
  38. #define BOOST_CONTAINER_IMPDEF(TYPE) TYPE
  39. #define BOOST_CONTAINER_SEEDOC(TYPE) TYPE
  40. #include <boost/container/detail/config_end.hpp>
  41. #endif //#ifndef BOOST_CONTAINER_DETAIL_WORKAROUND_HPP