Incorrect handling of synthesized attributes in Spirit.
I am trying to parse the lines ::
10.1.1.1/32 10.10.1.1 29/nolabel
10.7.7.7/32 150.2.2.2 nolabel/30
Which are space separated and putting them in a vector of strings ::
sp %= lit(' ');
ip_address %= +char_("0-9") >> char_('.') >> +char_("0-9") >> char_('.') >> +char_("0-9") >> char_('.') >> +char_("0-9")
>> *char_("/") >> *char_("0-9");
data %= *sp >> ( xr_special | ip_address | +lit("/") | +char_("0-9A-Za-z()"));
start %= +(data ) >> *sp >> eoi;
qi::rule
participants (1)
-
Preeti Khurana