Update of /cvsroot/boost/boost/libs/xpressive/proto/test
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9592/libs/xpressive/proto/test
Modified Files:
toy_spirit2.cpp
Log Message:
work around msvc-7.1 bug with array handling
Index: toy_spirit2.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/proto/test/toy_spirit2.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- toy_spirit2.cpp 3 Feb 2007 00:14:33 -0000 1.7
+++ toy_spirit2.cpp 3 Feb 2007 18:00:46 -0000 1.8
@@ -11,7 +11,6 @@
#include <iostream>
#include <boost/assert.hpp>
#include <boost/mpl/assert.hpp>
-#include <boost/call_traits.hpp>
#include <boost/utility/result_of.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/xpressive/proto/proto.hpp>
@@ -200,7 +199,7 @@
struct remove_case
{
typedef T type;
- static typename call_traits<T>::const_reference call(typename
call_traits<T>::const_reference t)
+ template<typename U> static U const &call(U const &t)
{
return t;
}
@@ -498,6 +497,7 @@
template<typename Rule, typename Iterator>
bool parse(Rule const &rule, Iterator begin, Iterator end)
{
+ //BOOST_MPL_ASSERT((is_array<Rule const>));
return parse_impl(proto::as_expr(rule), begin, end);
}
@@ -517,7 +517,7 @@
, hello.end()
)
);
-
+/*
BOOST_CHECK(
spirit2::parse(
char_ >> char_('b') >> 'c' >> char_
@@ -542,6 +542,7 @@
, hello.end()
)
);
+ //*/
}
using namespace boost::unit_test;
-------------------------------------------------------------------------
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