Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65077 - sandbox/chrono/boost
From: vicente.botet_at_[hidden]
Date: 2010-08-28 04:27:44


Author: viboes
Date: 2010-08-28 04:27:42 EDT (Sat, 28 Aug 2010)
New Revision: 65077
URL: http://svn.boost.org/trac/boost/changeset/65077

Log:
* eliminate ;; -pedantic warning
* define error message when !defined(BOOST_NO_STATIC_ASSERT)

Text files modified:
   sandbox/chrono/boost/ratio.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/chrono/boost/ratio.hpp
==============================================================================
--- sandbox/chrono/boost/ratio.hpp (original)
+++ sandbox/chrono/boost/ratio.hpp 2010-08-28 04:27:42 EDT (Sat, 28 Aug 2010)
@@ -38,7 +38,7 @@
 #include <boost/utility/enable_if.hpp>
 #include <boost/integer_traits.hpp>
 
-#ifndef BOOST_RATIO_USES_MPL_ASSERT
+#if !defined(BOOST_NO_STATIC_ASSERT) || !defined(BOOST_RATIO_USES_MPL_ASSERT)
 #define BOOST_RATIO_OVERFLOW_IN_ADD "overflow in ratio add"
 #define BOOST_RATIO_OVERFLOW_IN_ADD "overflow in ratio add"
 #define BOOST_RATIO_OVERFLOW_IN_SUB "overflow in ratio sub"
@@ -62,7 +62,7 @@
 #elif defined(BOOST_RATIO_USES_ARRAY_ASSERT)
 #define BOOST_RATIO_CONCAT(A,B) A##B
 #define BOOST_RATIO_NAME(A,B) BOOST_RATIO_CONCAT(A,B)
-#define BOOST_RATIO_STATIC_ASSERT(CND, MSG, TYPES) static char BOOST_RATIO_NAME(boost_ratio_test_,__LINE__)[CND];
+#define BOOST_RATIO_STATIC_ASSERT(CND, MSG, TYPES) static char BOOST_RATIO_NAME(__boost_ratio_test_,__LINE__)[CND]
 #else
 #define BOOST_RATIO_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