Update of /cvsroot/boost/boost/boost/xpressive/detail/static
In directory 
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23233/boost/xpressive/detail/static

Modified Files:
        is_pure.hpp 
Log Message:
work-arounds for gcc bugs and warnings

Index: is_pure.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/detail/static/is_pure.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- is_pure.hpp 7 May 2006 06:00:39 -0000       1.6
+++ is_pure.hpp 22 Oct 2006 05:11:38 -0000      1.7
@@ -13,6 +13,7 @@
 # pragma once
 #endif
 
+#include <boost/static_assert.hpp>
 #include <boost/mpl/bool.hpp>
 #include <boost/mpl/assert.hpp>
 #include <boost/xpressive/detail/detail_fwd.hpp>
@@ -154,7 +155,8 @@
       : mpl::bool_<width_of<Node>::value != unknown_width::value && 
is_pure<Node>::value>
     {
         // should never try to repeat something of 0-width
-        BOOST_MPL_ASSERT_RELATION(0, !=, width_of<Node>::value);
+        //BOOST_MPL_ASSERT_RELATION(0, !=, width_of<Node>::value);
+        BOOST_STATIC_ASSERT(0 != width_of<Node>::value);
     };
 
     template<bool B, quant_enum Q> struct use_simple_repeat_helper : 
mpl::false_ {};
@@ -164,7 +166,8 @@
     struct use_simple_repeat<proto::unary_op<Matcher, proto::noop_tag> >
       : use_simple_repeat_helper<as_matcher<Matcher>::type::pure, 
as_matcher<Matcher>::type::quant>
     {
-        BOOST_MPL_ASSERT_RELATION(0, !=, as_matcher<Matcher>::type::width);
+        //BOOST_MPL_ASSERT_RELATION(0, !=, as_matcher<Matcher>::type::width);
+        BOOST_STATIC_ASSERT(0 != as_matcher<Matcher>::type::width);
     };
 
     template<typename Node>


-------------------------------------------------------------------------
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

Reply via email to