PR#3226 Fix (#3227)

Co-authored-by: KD2YCU <[email protected]>
This commit is contained in:
Dan Anderson
2026-03-09 15:06:33 -07:00
committed by GitHub
co-authored by KD2YCU
parent d06c3c8936
commit 8f5ff2ea41
+1 -1
View File
@@ -169,7 +169,7 @@ T deserialize(Reader& is) {
} else if constexpr (is_optional<T>) {
auto has_value = deserialize<bool>(is);
if (has_value) {
return deserialize<T>(is);
return T{deserialize<typename T::value_type>(is)};
} else {
return std::nullopt;
}