libstdc++ has no std::exchange unless in C++14 mode.

This commit is contained in:
jzmaddock
2016-12-15 10:35:00 +00:00
parent 553dcbec96
commit 25be5543ae

View File

@ -239,6 +239,8 @@
// Although <regex> 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