v4.1.0
Improvements
- Update to fast_float v7.0.0 in #1488
- Adding example_json for newcomers to Glaze in #1490
- Document glz::convert_struct in #1491
- Faster skipping in #1495
New Reflection Feature
- glz::for_each_field in #1497
struct test_type
{
int32_t int1{};
int64_t int2{};
};
test_type var{42, 43};
glz::for_each_field(var, [](auto& field) { field += 1; });
expect(var.int1 == 43);
expect(var.int2 == 44);
In Development (Breaking Changes)
glz::mustache
has been renamed to glz::stencil
along with all other associated names. The decision was made to make a more optimal approach that does not conform strictly to the mustache specification, with the long term goal of adding compile time options that satisfy full compliance. The more generally useful string interpolation will be named stencil
and not automatically escape HTML characters.
- Sections and inverted sections in stencils
- Other stencil improvements and buffer API
by @stephenberry in #1471, #1492, #1493, #1494
Full Changelog: v4.0.3...v4.1.0