Changeset 54790


Ignore:
Timestamp:
Jul 8, 2009, 8:42:38 AM (9 years ago)
Author:
ben_hanson
Message:

Corner case fix to human readable state machine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/boost/spirit/home/support/detail/lexer/state_machine.hpp

    r53496 r54790  
    292292            iter_._token_iter = ptr_->front ()._transitions.begin ();
    293293            iter_._token_end = ptr_->front ()._transitions.end ();
    294             ++iter_;
     294
     295            // Deal with case where there is only a bol or eol
     296            // but no other transitions.
     297            if (iter_._transitions)
     298            {
     299                ++iter_;
     300            }
    295301        }
    296302
Note: See TracChangeset for help on using the changeset viewer.