Improvements
- Added reflection support for
std::variantwith 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