diff --git a/include/bitsery/ext/std_variant.h b/include/bitsery/ext/std_variant.h index 2834c34..56c0865 100644 --- a/include/bitsery/ext/std_variant.h +++ b/include/bitsery/ext/std_variant.h @@ -59,7 +59,7 @@ namespace bitsery { // reference heap data, so if `data` is already holding the requested // variant then we'll deserialize into the existing object if constexpr (!std::is_trivial_v) { - if (auto item = std::get_if(&data)) { + if (auto item = std::get_if(&data)) { this->serializeType(des, *item); return; }