Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57665 - trunk/libs/spirit/example/qi
From: hartmut.kaiser_at_[hidden]
Date: 2009-11-14 18:51:09


Author: hkaiser
Date: 2009-11-14 18:51:08 EST (Sat, 14 Nov 2009)
New Revision: 57665
URL: http://svn.boost.org/trac/boost/changeset/57665

Log:
Spirit: updating example
Text files modified:
   trunk/libs/spirit/example/qi/key_value_sequence.cpp | 5 ++---
   1 files changed, 2 insertions(+), 3 deletions(-)

Modified: trunk/libs/spirit/example/qi/key_value_sequence.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/key_value_sequence.cpp (original)
+++ trunk/libs/spirit/example/qi/key_value_sequence.cpp 2009-11-14 18:51:08 EST (Sat, 14 Nov 2009)
@@ -11,7 +11,6 @@
 
 namespace client
 {
- namespace spirit = boost::spirit;
     namespace qi = boost::spirit::qi;
 
     template <typename Iterator>
@@ -42,10 +41,10 @@
     std::string::iterator begin = input.begin();
     std::string::iterator end = input.end();
 
- client::key_value_sequence<std::string::iterator> g;
+ client::key_value_sequence<std::string::iterator> p;
     std::map<std::string, std::string> m;
 
- if (!qi::parse(begin, end, g, m))
+ if (!qi::parse(begin, end, p, m))
     {
         std::cout << "-------------------------------- \n";
         std::cout << "Parsing failed\n";


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