Suppress warning C4127

Splitting the condition of the if statement containing `constant expression` eliminates warnings in Visual Studio with /W4.
This commit is contained in:
tt4g 2019-02-12 09:42:45 +09:00
parent b87c76a2ef
commit 94b7f599da

View File

@ -116,10 +116,11 @@ struct convert<_Null> {
} \
} \
\
if (std::numeric_limits<type>::has_quiet_NaN && \
conversion::IsNaN(input)) { \
rhs = std::numeric_limits<type>::quiet_NaN(); \
return true; \
if (std::numeric_limits<type>::has_quiet_NaN) { \
if (conversion::IsNaN(input)) { \
rhs = std::numeric_limits<type>::quiet_NaN(); \
return true; \
} \
} \
\
return false; \