github stephenberry/glaze v1.9.2
1.9.2

latest releases: v8.3.0, v8.2.0, v8.1.0...
2 years ago

Improvements

  • Added reflection support for std::variant with reflectable types
  • Added support to read in values into custom lambdas. See example below:
struct custom_buffer_input
{
   std::string str{};
};

template <>
struct glz::meta<custom_buffer_input>
{
   static constexpr auto read_x = [](custom_buffer_input& s, const std::string& input) { s.str = input; };
   static constexpr auto write_x = [](auto& s) -> auto& { return s.str; };
   static constexpr auto value = glz::object("str", glz::custom<read_x, write_x>);
};

Fixes

  • Fixed reading enum string with variants from v1.8.5 changes
  • Fixed reading variants from v1.8.5 changes
  • Fixed glaze value lambdas rejecting lvalue references

Don't miss a new glaze release

NewReleases is sending notifications on new releases.