Update of /cvsroot/boost/boost/boost/mpl
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8765
Modified Files:
Tag: RC_1_34_0
assert.hpp
Log Message:
More GCC 4.x workarounds
Index: assert.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/mpl/assert.hpp,v
retrieving revision 1.13.14.3
retrieving revision 1.13.14.4
diff -u -d -r1.13.14.3 -r1.13.14.4
--- assert.hpp 9 Nov 2006 01:06:57 -0000 1.13.14.3
+++ assert.hpp 10 Nov 2006 00:39:04 -0000 1.13.14.4
@@ -1,5 +1,4 @@
-
#ifndef BOOST_MPL_ASSERT_HPP_INCLUDED
#define BOOST_MPL_ASSERT_HPP_INCLUDED
@@ -245,11 +244,13 @@
#if defined(BOOST_MPL_CFG_ASSERT_USE_RELATION_NAMES)
# if !defined(BOOST_MPL_CFG_ASSERT_BROKEN_POINTER_TO_POINTER_TO_MEMBER)
+// agurt, 9/nov/06: 'enum' below is a workaround for gcc 4.0.4/4.1.1 bugs
#29522 and #29518
# define BOOST_MPL_ASSERT_RELATION(x, rel, y) \
+enum { BOOST_PP_CAT(mpl_assert_rel_value,__LINE__) = (x rel y) }; \
BOOST_STATIC_CONSTANT( \
std::size_t \
, BOOST_PP_CAT(mpl_assertion_in_line_,__LINE__) = sizeof( \
- boost::mpl::assertion_failed<(x rel y)>( \
+
boost::mpl::assertion_failed<BOOST_PP_CAT(mpl_assert_rel_value,__LINE__)>( \
(boost::mpl::failed ************ ( boost::mpl::assert_relation< \
boost::mpl::assert_::relations( sizeof( \
boost::mpl::assert_::arg rel boost::mpl::assert_::arg \
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs