diff --git a/include/boost/core/swap.hpp b/include/boost/core/swap.hpp index 9820d4a..c749ce1 100644 --- a/include/boost/core/swap.hpp +++ b/include/boost/core/swap.hpp @@ -23,24 +23,12 @@ #include #include -#include //for std::size_t - -// try to include std::swap from the most lightweight header -#if defined(BOOST_DINKUMWARE_STDLIB) -# include -#elif defined(_LIBCPP_VERSION) // since the first commit -# include -#elif defined(__GLIBCXX__) && __GLIBCXX__ > 20080621 // GCC 4.4 -# include -#elif defined(__GLIBCXX__) && __GLIBCXX__ > 20071010 // GCC 4.3 -# include -#elif defined(__GLIBCXX__) || defined(__GLIBCPP__) // && __GLIBCPP__ > 20001005 // GCC 2.97 -# include -#elif __cplusplus >= 201103L -# include -#else // C++98/03 fallback -# include +#if __cplusplus >= 201103L +#include //for std::swap (C++11) +#else +#include //for std::swap (C++98) #endif +#include //for std::size_t namespace boost_swap_impl {