Test the standard library rather than the compiler to select the standard header for std::swap.

This commit is contained in:
Andrey Semashev
2020-05-21 02:04:43 +03:00
parent 9c33851420
commit 2b102e7357

View File

@ -23,7 +23,7 @@
#include <boost/core/enable_if.hpp>
#include <boost/config.hpp>
#if __cplusplus >= 201103L || defined(BOOST_MSVC)
#if __cplusplus >= 201103L || defined(BOOST_DINKUMWARE_STDLIB)
#include <utility> // for std::swap (C++11)
#else
#include <algorithm> // for std::swap (C++98)