|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73451 - trunk/boost/spirit/home/lex/lexer/lexertl
From: hartmut.kaiser_at_[hidden]
Date: 2011-07-30 15:30:54
Author: hkaiser
Date: 2011-07-30 15:30:54 EDT (Sat, 30 Jul 2011)
New Revision: 73451
URL: http://svn.boost.org/trac/boost/changeset/73451
Log:
Spirit: Fixed problem in lexer when enabling parser debugging
Text files modified:
trunk/boost/spirit/home/lex/lexer/lexertl/position_token.hpp | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
Modified: trunk/boost/spirit/home/lex/lexer/lexertl/position_token.hpp
==============================================================================
--- trunk/boost/spirit/home/lex/lexer/lexertl/position_token.hpp (original)
+++ trunk/boost/spirit/home/lex/lexer/lexertl/position_token.hpp 2011-07-30 15:30:54 EDT (Sat, 30 Jul 2011)
@@ -554,24 +554,19 @@
typedef Iterator iterator_type;
// default constructed tokens correspond to EOI tokens
- position_token()
- : value_(iterpair_type(iterator_type(), iterator_type()))
- {}
+ position_token() {}
// construct an invalid token
explicit position_token(int)
- : base_type(0)
- , value_(iterpair_type(iterator_type(), iterator_type()))
- {}
+ : base_type(0) {}
position_token(id_type id, std::size_t state, token_value_type const& value)
- : base_type(id, state, value), value_(value)
- {}
+ : base_type(id, state, value), value_(value) {}
position_token(id_type id, std::size_t state, Iterator const& first
, Iterator const& last)
: base_type(id, state, first, last)
- , value_(iterpair_type(iterator_type(), iterator_type()))
+ , value_(iterpair_type(first, last))
{}
token_value_type& value() { return value_; }
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