|
Boost-Commit : |
From: joel_at_[hidden]
Date: 2008-04-18 16:23:21
Author: djowel
Date: 2008-04-18 16:23:21 EDT (Fri, 18 Apr 2008)
New Revision: 44554
URL: http://svn.boost.org/trac/boost/changeset/44554
Log:
added test for function reference; removed test for non-const ref attribute.
Text files modified:
trunk/libs/spirit/test/qi/actions.cpp | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
Modified: trunk/libs/spirit/test/qi/actions.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/actions.cpp (original)
+++ trunk/libs/spirit/test/qi/actions.cpp 2008-04-18 16:23:21 EDT (Fri, 18 Apr 2008)
@@ -23,12 +23,6 @@
x += i;
}
-void fun3(int& i)
-{
- x += i;
- i = 0;
-}
-
struct fun_action
{
void operator()(int const& i, unused_type, unused_type) const
@@ -50,8 +44,11 @@
}
{
- char const *s1 = "{42}", *e1 = s1 + std::strlen(s1);
- qi::parse(s1, e1, '{' >> int_[&fun3] >> '}');
+ //~ char const *s1 = "{42}", *e1 = s1 + std::strlen(s1);
+ //~ qi::parse(s1, e1, '{' >> int_[fun2] >> '}');
+
+ //~ int ii;
+ //~ boost::spirit::detail::action_dispatch(fun2, ii, ii);
}
{
@@ -61,7 +58,7 @@
{
char const *s1 = "{42}", *e1 = s1 + std::strlen(s1);
- qi::parse(s1, e1, '{' >> int_[boost::bind(&fun, _1)] >> '}');
+ qi::parse(s1, e1, '{' >> int_[boost::bind(&fun1, _1)] >> '}');
}
{
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