fixed: zero initialize to avoid compiler warnings

This commit is contained in:
Arne Morten Kvarving 2022-12-02 09:05:59 +01:00
parent b528fd768f
commit 913f71557d

View File

@ -283,7 +283,7 @@ protected:
bool has = false;
(*this)(has);
if (has) {
T res;
T res{};
(*this)(res);
const_cast<std::optional<T>&>(data) = res;
}