Boost logo

Boost-Commit :

From: eric_at_[hidden]
Date: 2007-11-18 15:19:56


Author: eric_niebler
Date: 2007-11-18 15:19:55 EST (Sun, 18 Nov 2007)
New Revision: 41211
URL: http://svn.boost.org/trac/boost/changeset/41211

Log:
vc6 doesn't like BOOST_MPL_ASSERT_MSG
Text files modified:
   trunk/boost/foreach.hpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/boost/foreach.hpp
==============================================================================
--- trunk/boost/foreach.hpp (original)
+++ trunk/boost/foreach.hpp 2007-11-18 15:19:55 EST (Sun, 18 Nov 2007)
@@ -352,7 +352,9 @@
     //
     // To treat the container as an array, use boost::as_array() in <boost/range/as_array.hpp>,
     // as in BOOST_FOREACH( char ch, boost::as_array("hello") ) ...
+ #if BOOST_MSVC > 1300
     BOOST_MPL_ASSERT_MSG( (!is_char_array<T>::value), IS_THIS_AN_ARRAY_OR_A_NULL_TERMINATED_STRING, (T) );
+ #endif
 
     // If the type is a pointer to a null terminated string (as opposed
     // to an array type), there is no ambiguity.


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