Change std::nan("") to proper nan constants

This commit is contained in:
tamasmeszaros 2022-05-09 13:11:01 +02:00
parent 12a54251c9
commit fed317f27b
10 changed files with 22 additions and 16 deletions

View file

@ -331,6 +331,12 @@ public:
inline bool empty() const { return size() == 0; }
};
template<class T, class = FloatingOnly<T>>
constexpr T NaN = std::numeric_limits<T>::quiet_NaN();
constexpr float NaNf = NaN<float>;
constexpr double NaNd = NaN<double>;
} // namespace Slic3r
#endif