We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
#if !defined(isfinite) #include <float.h> #define isfinite _finite #endif
The macro name isfinite is the same as std::isfinite, which can cause compiler to incorrectly replace std::isfinite to std::_finite.
isfinite
std::isfinite
std::_finite
To Reproduce Just use std::isfinite after the inclusion of jsoncpp.cpp.
jsoncpp.cpp
Expected behavior A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
Additional context Please use std::isfinite to check values, or use _isfinite directly or use other macro name to circumvent std member names.
_isfinite
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The macro name
isfinite
is the same asstd::isfinite
, which can cause compiler to incorrectly replacestd::isfinite
tostd::_finite
.To Reproduce
Just use
std::isfinite
after the inclusion ofjsoncpp.cpp
.Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
Additional context
Please use
std::isfinite
to check values, or use_isfinite
directly or use other macro name to circumvent std member names.The text was updated successfully, but these errors were encountered: