Fix GCC Build

I have no idea how Clang is okay with`unwrapOrDefault()` here.
This commit is contained in:
Nick Gerleman
2023-10-03 16:22:10 -07:00
committed by GitHub
parent 2734784ddb
commit c0449263d9

View File

@@ -29,7 +29,7 @@ struct FloatOptional {
return isUndefined() ? defaultValue : value_;
}
bool isUndefined() const {
constexpr bool isUndefined() const {
return std::isnan(value_);
}
};