2
0
mirror of https://github.com/boostorg/nowide.git synced 2026-02-21 15:12:30 +00:00

Disable C++11 features for libstdc++ <5

This commit is contained in:
Alexander Grund
2020-02-28 15:21:58 +01:00
parent f00cafb095
commit acefe4358c

View File

@@ -79,7 +79,10 @@
#define BOOST_NOWIDE_FALLTHROUGH BOOST_FALLTHROUGH
#endif
#if __cplusplus >= 201103L || (defined(BOOST_MSVC) && BOOST_MSVC >= 1900)
// MSVC 2015 (1900) has reasonable C++11 support (especially auto-generated move ctors)
// libstdc++ < 5 does not support movable streams
#if(__cplusplus >= 201103L || (defined(BOOST_MSVC) && BOOST_MSVC >= 1900)) \
&& (!defined(BOOST_LIBSTDCXX_VERSION) || BOOST_LIBSTDCXX_VERSION >= 50000)
#define BOOST_NOWIDE_CXX11 1
#else
#define BOOST_NOWIDE_CXX11 0