Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65296 - sandbox/chrono/boost/type_traits/ext
From: vicente.botet_at_[hidden]
Date: 2010-09-05 11:22:06


Author: viboes
Date: 2010-09-05 11:21:54 EDT (Sun, 05 Sep 2010)
New Revision: 65296
URL: http://svn.boost.org/trac/boost/changeset/65296

Log:
* make static assertion use -1 index instead of 0 as gcc-4.5 allows the definition of arrays with size 0.
* refine dependencies
Text files modified:
   sandbox/chrono/boost/type_traits/ext/common_type.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/chrono/boost/type_traits/ext/common_type.hpp
==============================================================================
--- sandbox/chrono/boost/type_traits/ext/common_type.hpp (original)
+++ sandbox/chrono/boost/type_traits/ext/common_type.hpp 2010-09-05 11:21:54 EDT (Sun, 05 Sep 2010)
@@ -37,7 +37,7 @@
 //~ #elif defined(BOOST_COMMON_TYPE_USES_ARRAY_ASSERT)
 #define BOOST_COMMON_TYPE_CONCAT(A,B) A##B
 #define BOOST_COMMON_TYPE_NAME(A,B) BOOST_COMMON_TYPE_CONCAT(A,B)
-#define BOOST_COMMON_TYPE_STATIC_ASSERT(CND, MSG, TYPES) static char BOOST_COMMON_TYPE_NAME(__boost_common_type_test_,__LINE__)[CND]
+#define BOOST_COMMON_TYPE_STATIC_ASSERT(CND, MSG, TYPES) static char BOOST_COMMON_TYPE_NAME(__boost_common_type_test_,__LINE__)[(CND)?1:-1]
 //~ #define BOOST_COMMON_TYPE_STATIC_ASSERT(CND, MSG, TYPES)
 #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