New Features
skip_ifruntime value skipping in #2029
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
Fixes
- Fix websocket closing code and make it more robust by @stephenberry in #2020
- Fix a typo of a field declaration in unknown-keys.md by @ivanka2012 in #2017
- Fix integer UB by @stephenberry in #2023
- Write member functions when
write_member_functions = trueby @stephenberry in #2028
Full Changelog: v6.0.1...v6.0.2