|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50410 - trunk/boost/type_traits
From: john_at_[hidden]
Date: 2008-12-30 08:25:27
Author: johnmaddock
Date: 2008-12-30 08:25:26 EST (Tue, 30 Dec 2008)
New Revision: 50410
URL: http://svn.boost.org/trac/boost/changeset/50410
Log:
MSVC's __alignof operator doesn't always do the right thing: disable for now.
Text files modified:
trunk/boost/type_traits/intrinsics.hpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/type_traits/intrinsics.hpp
==============================================================================
--- trunk/boost/type_traits/intrinsics.hpp (original)
+++ trunk/boost/type_traits/intrinsics.hpp 2008-12-30 08:25:26 EST (Tue, 30 Dec 2008)
@@ -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
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk