Skip to content

v6.0.2

Latest

Choose a tag to compare

@stephenberry stephenberry released this 06 Nov 20:02
· 12 commits to main since this release

New Features

  • skip_if runtime value skipping in #2029

skip_if documentation

struct user_settings_t {
    std::string theme = "light";
    int volume = 50;
};

template <>
struct glz::meta<user_settings_t> {
    template <class T>
    static constexpr bool skip_if(T&& value, std::string_view key, const 
glz::meta_context&) {
        using V = std::decay_t<T>;
        if constexpr (std::same_as<V, std::string>) {
            return key == "theme" && value == "light";
        }
        else if constexpr (std::same_as<V, int>) {
            return key == "volume" && value == 50;
        }
        return false;
    }
};
  • REPE to/from JSON RPC 2.0 in #2026

Improvements

  • Support for nullable_value_t with BEVE in #2021
  • Prevent Clang missing braces warnings in #2024

Fixes

Full Changelog: v6.0.1...v6.0.2