From 1c91d631971a6ae892c7ae7e7cfa29678c820ba4 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 12 Jun 2015 17:57:56 +0100 Subject: [PATCH] Looks like some intrinsics are only available in C++11 mode. --- include/boost/type_traits/intrinsics.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/type_traits/intrinsics.hpp b/include/boost/type_traits/intrinsics.hpp index 711d460..b78e1eb 100644 --- a/include/boost/type_traits/intrinsics.hpp +++ b/include/boost/type_traits/intrinsics.hpp @@ -263,7 +263,7 @@ # define BOOST_IS_FINAL(T) __is_final(T) # endif -# if __GNUC__ >= 5 +# if (__GNUC__ >= 5) && (__cplusplus >= 201103) # define BOOST_HAS_TRIVIAL_MOVE_ASSIGN(T) (__is_trivially_assignable(T&, T&&) && is_assignable::value && !::boost::is_volatile::value) # define BOOST_HAS_TRIVIAL_MOVE_CONSTRUCTOR(T) (__is_trivially_constructible(T, T&&) && is_constructible::value && !::boost::is_volatile::value) # endif