From 25be5543ae395d16f23ed2ad80c6f9848eb9edef Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 15 Dec 2016 10:35:00 +0000 Subject: [PATCH] libstdc++ has no std::exchange unless in C++14 mode. --- include/boost/config/stdlib/libstdcpp3.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/config/stdlib/libstdcpp3.hpp b/include/boost/config/stdlib/libstdcpp3.hpp index 6e40bad4..557767b1 100644 --- a/include/boost/config/stdlib/libstdcpp3.hpp +++ b/include/boost/config/stdlib/libstdcpp3.hpp @@ -239,6 +239,8 @@ // Although is present and compilable against, the actual implementation is not functional // even for the simplest patterns such as "\d" or "[0-9]". This is the case at least in gcc up to 4.8, inclusively. # define BOOST_NO_CXX11_HDR_REGEX +#endif +#if (BOOST_LIBSTDCXX_VERSION < 40900) || (__cplusplus <= 201103) # define BOOST_NO_CXX14_STD_EXCHANGE #endif