Boost logo

Boost :

Subject: [boost] [type_traits] patch for gccxml
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2008-12-23 09:16:47


Please apply this patch to support current gccxml. The issue is that gccxml will claim to be gcc4.3, but it is really based on gcc4.2, and doesn't support the additional intrinsics (__is_enum, in particular).

diff -r 13bbd7c5c6d0 boost/type_traits/intrinsics.hpp
--- a/boost/type_traits/intrinsics.hpp Mon Dec 01 07:41:09 2008 -0500
+++ b/boost/type_traits/intrinsics.hpp Tue Dec 23 09:15:32 2008 -0500
@@ -126,7 +126,7 @@
 # define BOOST_HAS_TYPE_TRAITS_INTRINSICS
 #endif
 
-#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
+#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3) && !defined(__GCCXML__)))
 # include <boost/type_traits/is_same.hpp>
 # include <boost/type_traits/is_reference.hpp>
 # include <boost/type_traits/is_volatile.hpp>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk