Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69219 - trunk/libs/spirit/test/qi
From: hartmut.kaiser_at_[hidden]
Date: 2011-02-23 15:09:39


Author: hkaiser
Date: 2011-02-23 15:09:38 EST (Wed, 23 Feb 2011)
New Revision: 69219
URL: http://svn.boost.org/trac/boost/changeset/69219

Log:
Spirit: Fixing obscure bug in qi::attr(), added test case
Text files modified:
   trunk/libs/spirit/test/qi/attr.cpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: trunk/libs/spirit/test/qi/attr.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/attr.cpp (original)
+++ trunk/libs/spirit/test/qi/attr.cpp 2011-02-23 15:09:38 EST (Wed, 23 Feb 2011)
@@ -55,5 +55,11 @@
         BOOST_TEST(test_attr("", attr(ref(d1)), d) && d == 2.0);
     }
 
+ {
+ std::string s;
+ BOOST_TEST(test_attr("s", "s" >> qi::attr(std::string("123")), s) &&
+ s == "123");
+ }
+
     return boost::report_errors();
 }


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