From e59271fdc23a0d932feab7f1a71b66b3c3f346eb Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 2 Dec 2019 02:15:55 +0200 Subject: [PATCH] Check BOOST_MSVC in addition to __cplusplus, because msvc doesn't define __cplusplus correctly --- include/boost/core/swap.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/core/swap.hpp b/include/boost/core/swap.hpp index c749ce1..73a454c 100644 --- a/include/boost/core/swap.hpp +++ b/include/boost/core/swap.hpp @@ -23,7 +23,7 @@ #include #include -#if __cplusplus >= 201103L +#if __cplusplus >= 201103L || defined(BOOST_MSVC) #include //for std::swap (C++11) #else #include //for std::swap (C++98)