Re: IPv6 address parsing
Seth <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 07-12-17 18:21, Michael Powell wrote: > Well, you remembered incorrectly. I was asking. > If there's a doable intermediate step of parsed individual octets, so > be it; no problem. Please per-use all the parts of my answer. On 07-12-17 17:13, Seth wrote: > Maybe you'll be more convinced when it's demonstrated (I think I did > this before): > > https://wandbox.org/permlink/M12U5PEYcB8vnxIs > > It's really just ~3 lines of code changed: > > using ipv4_address = std::string; // much less useful representation > // .... > addr_ = raw[ octet_ >> '.' >> octet_ >> '.' >> octet_ >> '.' >> > octet_ ]; > > Note now that test fails: It's all there. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Spirit-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spirit-general