Stephen Berry
Stephen Berry
Support for partial reading via the `read_allocated` option has been added. The option supports quick exiting for types like std::tuple, std::array, std::vector, std::map, std::unordered_map, glaze meta objects, and reflected structs.
The new read_allocated option was confusing in its name. It has been renamed to partial_read. read_allocated would imply that you only read allocated memory, but this is confusing for strings,...
Thanks for the additional info. What's changed in version 3 is that the `value` in `glz::meta` is no longer a tuple of pairs (tuples of 2 arguments) of names and...
> This op of interleaving doesn't make sense it will just slow down compilation. Agreed, I don't think we need `interleave_and_enumerate`. I just need to add support for a `keys`...
Another question: How should feature test macros work as we move towards C++20 modules? Since we can't export macros from C++20 modules.
You can set `error_on_unknown_keys = false`. This will just skip unknown keys. `glz::read(...)`
Let me look over the code. We should be able to early exit once the user struct is parsed. And yes, read_file_json is templated on the opts.
Yeah, that's what the documentation says. So, the code probably needs to be improved. I was not the author of this new feature, so this is one aspect I didn't...
I just merged in a fix that will early exit even for `error_on_unknown_key = false`. I've updated the documentation accordingly. Thanks for your patience, it took me a while to...
Thanks for this helpful discussion on streaming buffers. It's definitely something that should be added, but has a number of complexities, which you have noted. I will note that in...