Boost logo

Boost Users :

Subject: [Boost-users] [Spirit] chset_p
From: Commander Pirx (CmdPirx_at_[hidden])
Date: 2009-07-03 10:20:32


Hi all,

I've detected a strange behavior of Spirit using (VC9SP1). I assume that

chset_p( "-_!#$%&*+|~" ) and
chset_p( "!#$%&*+-_|~" )

are identical. I've only changed the order of the characters a little bit.
But when i'm trying to parse a string like "abcd-edfg: " the parser eats the
':' sign but shouldn't. Examples here:

   token_ = alnum_p | chset_p( "-_!#$%&*+|~" );

// the line above works fine

   token_ = alnum_p | chset_p( "!#$%&*+-_|~" );

// here the ':' sign will be consumed!

Thanx.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net