8 Dec
2019
8 Dec
'19
3:26 p.m.
On 2019-11-24 16:39, Vinnie Falco via Boost wrote:
I don't think so, the parser in boost.json is a SAX parser which is somewhat inconvenient for parsing directly into user defined types. It could be adapted into a generator using coroutines however.
Your parser currently uses stack variables, so the adaptor has to use stackful coroutines which would incur two context-switches on every iteration.