|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72280 - trunk/boost/type_traits
From: blelbach_at_[hidden]
Date: 2011-05-30 08:42:21
Author: wash
Date: 2011-05-30 08:42:20 EDT (Mon, 30 May 2011)
New Revision: 72280
URL: http://svn.boost.org/trac/boost/changeset/72280
Log:
Clang 3.0+ supports gcc-style type trait intrinsics.
Text files modified:
trunk/boost/type_traits/intrinsics.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/type_traits/intrinsics.hpp
==============================================================================
--- trunk/boost/type_traits/intrinsics.hpp (original)
+++ trunk/boost/type_traits/intrinsics.hpp 2011-05-30 08:42:20 EDT (Mon, 30 May 2011)
@@ -124,7 +124,7 @@
# define BOOST_HAS_TYPE_TRAITS_INTRINSICS
#endif
-#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3) && !defined(__GCCXML__)))
+#if (defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3) && !defined(__GCCXML__)))) || (__clang_major__ >= 3)
# include <boost/type_traits/is_same.hpp>
# include <boost/type_traits/is_reference.hpp>
# include <boost/type_traits/is_volatile.hpp>
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