From bc82adcd0b3d8e94e52f79ba1803d72cc0aba5b3 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Mon, 2 Dec 2019 01:11:04 +0300 Subject: [PATCH] Remove implementation specific handling --- include/boost/core/swap.hpp | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) 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 {