Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73620 - trunk/libs/spirit/example/lex
From: hartmut.kaiser_at_[hidden]
Date: 2011-08-09 09:14:56


Author: hkaiser
Date: 2011-08-09 09:14:55 EDT (Tue, 09 Aug 2011)
New Revision: 73620
URL: http://svn.boost.org/trac/boost/changeset/73620

Log:
Spirit: Fixing lexer example
Text files modified:
   trunk/libs/spirit/example/lex/strip_comments_lexer.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/spirit/example/lex/strip_comments_lexer.cpp
==============================================================================
--- trunk/libs/spirit/example/lex/strip_comments_lexer.cpp (original)
+++ trunk/libs/spirit/example/lex/strip_comments_lexer.cpp 2011-08-09 09:14:55 EDT (Tue, 09 Aug 2011)
@@ -115,7 +115,7 @@
         cppcomment = "\\/\\/[^\n]*"; // '//[^\n]*'
         ccomment = "\\/\\*"; // '/*'
         endcomment = "\\*\\/"; // '*/'
- any = ".";
+ any = std::string(".");
         eol = "\n";
 
         // The following tokens are associated with the default lexer state
@@ -132,7 +132,7 @@
         this->self("COMMENT")
             = endcomment [ set_lexer_state("INITIAL") ]
             | "\n"
- | "."
+ | std::string(".")
             ;
     }
 


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