Keep code c++11 compliant
This commit is contained in:
parent
c0ce549f08
commit
4bce607757
@ -158,7 +158,7 @@ inline Emitter& Emitter::WriteStreamable(T value) {
|
|||||||
SetStreamablePrecision<T>(stream);
|
SetStreamablePrecision<T>(stream);
|
||||||
|
|
||||||
bool special = false;
|
bool special = false;
|
||||||
if (std::is_floating_point_v<T>) {
|
if (std::is_floating_point<T>::value) {
|
||||||
if ((std::numeric_limits<T>::has_quiet_NaN ||
|
if ((std::numeric_limits<T>::has_quiet_NaN ||
|
||||||
std::numeric_limits<T>::has_signaling_NaN) &&
|
std::numeric_limits<T>::has_signaling_NaN) &&
|
||||||
std::isnan(value)) {
|
std::isnan(value)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user