From f91557eeef0732ca99e04e1c27bf3ef7339d0e60 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 1 Mar 2020 20:29:54 +0300 Subject: [PATCH] Added a workaround for missing max_align_t in gcc 4.7. --- include/boost/atomic/detail/storage_traits.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/atomic/detail/storage_traits.hpp b/include/boost/atomic/detail/storage_traits.hpp index c84861c..aef7b5f 100644 --- a/include/boost/atomic/detail/storage_traits.hpp +++ b/include/boost/atomic/detail/storage_traits.hpp @@ -134,7 +134,8 @@ struct storage_traits< 16u > #else -#if __cplusplus >= 201103L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201103L) +#if (__cplusplus >= 201103L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201103L)) &&\ + (!defined(BOOST_GCC_VERSION) || BOOST_GCC_VERSION >= 40800) using std::max_align_t; #else