Closed
Description
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
.
To Reproduce
Just use std::isfinite
after the inclusion of jsoncpp.cpp
.
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
- OS: Windows 10 22H2 x64
Additional context
Please use std::isfinite
to check values, or use _isfinite
directly or use other macro name to circumvent std member names.
Metadata
Metadata
Assignees
Labels
No labels