From 0e8f2434caddceb87ac8a5a7b405840719d9345f Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 30 Dec 2008 13:25:26 +0000 Subject: [PATCH] MSVC's __alignof operator doesn't always do the right thing: disable for now. [SVN r50410] --- include/boost/type_traits/intrinsics.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/type_traits/intrinsics.hpp b/include/boost/type_traits/intrinsics.hpp index 0de96b2..91ee88b 100644 --- a/include/boost/type_traits/intrinsics.hpp +++ b/include/boost/type_traits/intrinsics.hpp @@ -105,7 +105,8 @@ # define BOOST_IS_ENUM(T) __is_enum(T) // This one doesn't quite always do the right thing: // # define BOOST_IS_POLYMORPHIC(T) __is_polymorphic(T) -# define BOOST_ALIGNMENT_OF(T) __alignof(T) +// This one fails if the default alignment has been changed with /Zp: +// # define BOOST_ALIGNMENT_OF(T) __alignof(T) # define BOOST_HAS_TYPE_TRAITS_INTRINSICS #endif