Fix GCC Build
I have no idea how Clang is okay with`unwrapOrDefault()` here.
This commit is contained in:
@@ -29,7 +29,7 @@ struct FloatOptional {
|
|||||||
return isUndefined() ? defaultValue : value_;
|
return isUndefined() ? defaultValue : value_;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isUndefined() const {
|
constexpr bool isUndefined() const {
|
||||||
return std::isnan(value_);
|
return std::isnan(value_);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user