Increase gcc version to 4.9 for alignas.

gcc 4.8 is known to not support alignas with constant expressions.
This commit is contained in:
Andrey Semashev
2020-03-01 12:59:03 +03:00
parent 0173564c24
commit c3f81f3c70

View File

@ -254,7 +254,6 @@
// C++0x features in 4.8.n and later // C++0x features in 4.8.n and later
// //
#if (BOOST_GCC_VERSION < 40800) || !defined(BOOST_GCC_CXX11) #if (BOOST_GCC_VERSION < 40800) || !defined(BOOST_GCC_CXX11)
# define BOOST_NO_CXX11_ALIGNAS
# define BOOST_NO_CXX11_THREAD_LOCAL # define BOOST_NO_CXX11_THREAD_LOCAL
# define BOOST_NO_CXX11_SFINAE_EXPR # define BOOST_NO_CXX11_SFINAE_EXPR
#endif #endif
@ -267,6 +266,14 @@
# define BOOST_NO_CXX14_BINARY_LITERALS # define BOOST_NO_CXX14_BINARY_LITERALS
#endif #endif
// C++0x features in 4.9.n and later
//
#if (BOOST_GCC_VERSION < 40900) || !defined(BOOST_GCC_CXX11)
// Although alignas support is added in gcc 4.8, it does not accept
// constant expressions as an argument until gcc 4.9.
# define BOOST_NO_CXX11_ALIGNAS
#endif
// C++0x features in 5.1 and later // C++0x features in 5.1 and later
// //
#if (BOOST_GCC_VERSION < 50100) || !defined(BOOST_GCC_CXX11) #if (BOOST_GCC_VERSION < 50100) || !defined(BOOST_GCC_CXX11)