Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61122 - trunk/libs/spirit/test/qi
From: joel_at_[hidden]
Date: 2010-04-07 09:10:16


Author: djowel
Date: 2010-04-07 09:10:15 EDT (Wed, 07 Apr 2010)
New Revision: 61122
URL: http://svn.boost.org/trac/boost/changeset/61122

Log:
fix for new attribute handling for int parsers.
Text files modified:
   trunk/libs/spirit/test/qi/uint.cpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/libs/spirit/test/qi/uint.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/uint.cpp (original)
+++ trunk/libs/spirit/test/qi/uint.cpp 2010-04-07 09:10:15 EDT (Wed, 07 Apr 2010)
@@ -46,9 +46,9 @@
     custom_int() : n(0) {}
     explicit custom_int(int n_) : n(n_) {}
     custom_int& operator=(int n_) { n = n_; return *this; }
- friend custom_int operator*(custom_int a, custom_int b)
+ friend custom_int operator*(custom_int a, custom_int b)
         { return custom_int(a.n * b.n); }
- friend custom_int operator+(custom_int a, custom_int b)
+ friend custom_int operator+(custom_int a, custom_int b)
         { return custom_int(a.n + b.n); }
 };
 
@@ -197,17 +197,17 @@
         BOOST_TEST(test(" 456", uint_[ref(n) = _1], space));
         BOOST_TEST(n == 456);
     }
-
+
     ///////////////////////////////////////////////////////////////////////////
     // Check overflow is parse error
     ///////////////////////////////////////////////////////////////////////////
     {
- using boost::spirit::qi::uint_;
+ boost::spirit::qi::uint_parser<boost::uint8_t> uint_;
         boost::uint8_t u;
 
         BOOST_TEST(!test_attr("999", uint_, u));
     }
-
+
     ///////////////////////////////////////////////////////////////////////////
     // custom uint tests
     ///////////////////////////////////////////////////////////////////////////


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