Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68474 - trunk/boost/icl/type_traits
From: afojgo_at_[hidden]
Date: 2011-01-27 10:33:30


Author: jofaber
Date: 2011-01-27 10:33:28 EST (Thu, 27 Jan 2011)
New Revision: 68474
URL: http://svn.boost.org/trac/boost/changeset/68474

Log:
Bug fix. BOOST_STATIC_CONSTANT macro won't compile, if boost/icl/.. includes are preceeded by
#include <boost/thread.hpp>
The fix is to put a subexpression into parentheses.

Text files modified:
   trunk/boost/icl/type_traits/is_interval.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/icl/type_traits/is_interval.hpp
==============================================================================
--- trunk/boost/icl/type_traits/is_interval.hpp (original)
+++ trunk/boost/icl/type_traits/is_interval.hpp 2011-01-27 10:33:28 EST (Thu, 27 Jan 2011)
@@ -26,7 +26,7 @@
 {
     typedef is_interval<Type> type;
     BOOST_STATIC_CONSTANT(bool,
- value = (interval_bound_type<Type>::value < interval_bounds::undefined));
+ value = ((interval_bound_type<Type>::value) < interval_bounds::undefined));
 };
 
 
@@ -34,7 +34,7 @@
 {
     typedef has_static_bounds<Type> type;
     BOOST_STATIC_CONSTANT(bool,
- value = (interval_bound_type<Type>::value < interval_bounds::dynamic));
+ value = ((interval_bound_type<Type>::value) < interval_bounds::dynamic));
 };
 
 template <class Type> struct has_dynamic_bounds


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