Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59724 - trunk/boost/spirit/home/qi/nonterminal
From: joel_at_[hidden]
Date: 2010-02-16 22:52:46


Author: djowel
Date: 2010-02-16 22:52:46 EST (Tue, 16 Feb 2010)
New Revision: 59724
URL: http://svn.boost.org/trac/boost/changeset/59724

Log:
fixed logic
Text files modified:
   trunk/boost/spirit/home/qi/nonterminal/rule.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/spirit/home/qi/nonterminal/rule.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/nonterminal/rule.hpp (original)
+++ trunk/boost/spirit/home/qi/nonterminal/rule.hpp 2010-02-16 22:52:46 EST (Tue, 16 Feb 2010)
@@ -220,7 +220,8 @@
             if (f)
             {
                 // do a preskip if this is an implied lexeme
- if (!is_same<Skipper, skipper_type>::value)
+ if (is_same<skipper_type, unused_type>::value
+ && !is_same<Skipper, skipper_type>::value)
                     qi::skip_over(first, last, skipper);
 
                 typedef traits::make_attribute<attr_type, Attribute> make_attribute;


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