Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54794 - trunk/libs/spirit/example/karma
From: hartmut.kaiser_at_[hidden]
Date: 2009-07-08 11:08:27


Author: hkaiser
Date: 2009-07-08 11:08:26 EDT (Wed, 08 Jul 2009)
New Revision: 54794
URL: http://svn.boost.org/trac/boost/changeset/54794

Log:
Spirit: missing file
Text files modified:
   trunk/libs/spirit/example/karma/num_list1.cpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/libs/spirit/example/karma/num_list1.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/num_list1.cpp (original)
+++ trunk/libs/spirit/example/karma/num_list1.cpp 2009-07-08 11:08:26 EDT (Wed, 08 Jul 2009)
@@ -19,7 +19,7 @@
 
 #include <iostream>
 #include <string>
-#include <vector>
+#include <list>
 
 namespace client
 {
@@ -32,7 +32,7 @@
     // more information
     ///////////////////////////////////////////////////////////////////////////
     template <typename Iterator>
- bool parse_numbers(Iterator first, Iterator last, std::vector<double>& v)
+ bool parse_numbers(Iterator first, Iterator last, std::list<double>& v)
     {
         using qi::double_;
         using qi::phrase_parse;
@@ -49,7 +49,7 @@
     ///////////////////////////////////////////////////////////////////////////
     //[tutorial_karma_numlist1
     template <typename OutputIterator>
- bool generate_numbers(OutputIterator sink, std::vector<double> const& v)
+ bool generate_numbers(OutputIterator sink, std::list<double> const& v)
     {
         using karma::double_;
         using karma::generate_delimited;
@@ -85,7 +85,7 @@
         if (str.empty() || str[0] == 'q' || str[0] == 'Q')
             break;
 
- std::vector<double> v; // here we put the data to generate
+ std::list<double> v; // here we put the data to generate
         if (client::parse_numbers(str.begin(), str.end(), v))
         {
             // ok, we got some numbers, no print them back out


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