Skip to content

Commit

Permalink
Test the standard library rather than the compiler to select the stan…
Browse files Browse the repository at this point in the history
…dard header for std::swap.
  • Loading branch information
Lastique committed May 20, 2020
1 parent 9c33851 commit 2b102e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/boost/core/swap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@

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

namespace boost_swap_impl
{
Expand Down

0 comments on commit 2b102e7

Please sign in to comment.