WIP: FloatOptional GCC build fix and more constexpr #1411

Closed
NickGerleman wants to merge 22 commits from NickGerleman-fix-gcc-floatoptional into main
Showing only changes of commit bf2bec80da - Show all commits

View File

@@ -7,7 +7,7 @@
#pragma once #pragma once
#include <cmath> #include <yoga/numeric/Comparison.h>
#include <limits> #include <limits>
namespace facebook::yoga { namespace facebook::yoga {
@@ -30,7 +30,7 @@ struct FloatOptional {
} }
constexpr bool isUndefined() const { constexpr bool isUndefined() const {
return std::isnan(value_); return yoga::isUndefined(value);
} }
}; };