Fix volatile bool serialized as 1 or 0

Ported from 5d1d2721d1
This commit is contained in:
Benoit Blanchon committed 2024-01-10 14:03:12 +01:00
1 parent 315cc722e9
commit a7bfc2212c
3 files changed
+10 -1

No files matched your search

@@ -132,7 +132,8 @@ VariantRefBase<TDerived>::operator[](const TString& key) const {
template <typename TDerived>
template <typename T>
inline bool VariantRefBase<TDerived>::set(const T& value) const {
Converter<T>::toJson(value, getOrCreateVariant());
Converter<typename detail::remove_cv<T>::type>::toJson(value,
getOrCreateVariant());
auto resources = getResourceManager();
return resources && !resources->overflowed();
}