From 2b102e735724d3d4e3a54c86cf5de56768299d97 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Thu, 21 May 2020 02:04:43 +0300 Subject: [PATCH] Test the standard library rather than the compiler to select the standard header for std::swap. --- include/boost/core/swap.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/core/swap.hpp b/include/boost/core/swap.hpp index 73a454c..49e1b2d 100644 --- a/include/boost/core/swap.hpp +++ b/include/boost/core/swap.hpp @@ -23,12 +23,12 @@ #include #include -#if __cplusplus >= 201103L || defined(BOOST_MSVC) -#include //for std::swap (C++11) +#if __cplusplus >= 201103L || defined(BOOST_DINKUMWARE_STDLIB) +#include // for std::swap (C++11) #else -#include //for std::swap (C++98) +#include // for std::swap (C++98) #endif -#include //for std::size_t +#include // for std::size_t namespace boost_swap_impl {