
3 Jul
2012
3 Jul
'12
11 a.m.
FWIW, your issue can be reproduced with much shorted code:
<skip include> <skip Ipv4 definition>
namespace qi = boost::spirit::qi; qi::uint_parser
octet; int main() { Ipv4 ip; std::string s = "1.2.3.4"; bool r = qi::parse(s.begin(), s.end(), octet >> '.' >> octet >> '.' >> octet >> '.' >> octet, ip); }
or even simpler:
boost::tuple
octet >> '.' >> octet, v);
while the following works correctly:
boost::fusion::vector
octet >> '.' >> octet, v);
So, the attribute gets converted to boost::tuple is some strange way...