Skip to content

v4.1.0

Compare
Choose a tag to compare
@stephenberry stephenberry released this 14 Dec 15:03
· 98 commits to main since this release

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.

Full Changelog: v4.0.3...v4.1.0