github stephenberry/glaze v4.1.0

latest releases: v8.4.0, v8.3.0, v8.2.0...
21 months ago

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

Don't miss a new glaze release

NewReleases is sending notifications on new releases.