The use of std::numeric_limits<T>::infinity() in parse_number.h is incompatible with "fast math" options.
Perhaps if __FAST_MATH__ is defined std::numeric_limits<T>::max() or, if negative, std::numeric_limits<T>::lowest() would suffice for the returned value? Or maybe some other mechanism that elides/replaces parse_infnan?
I think this is messy and non-ideal but some code that wants fast float will also want fast math ;-). This is more of a feature request than a bug report.
Thanks for the great library!
The use of
std::numeric_limits<T>::infinity()in parse_number.h is incompatible with "fast math" options.Perhaps if
__FAST_MATH__is definedstd::numeric_limits<T>::max()or, if negative,std::numeric_limits<T>::lowest()would suffice for the returnedvalue? Or maybe some other mechanism that elides/replacesparse_infnan?I think this is messy and non-ideal but some code that wants fast float will also want fast math ;-). This is more of a feature request than a bug report.
Thanks for the great library!