Description
-
What is the issue you have?
Compile error. -
Please describe the steps to reproduce the issue. Can you provide a small but working code example?
https://sourceware.org/bugzilla/show_bug.cgi?id=15366
I have compile error in debug mode on this line:
https://github.com/nlohmann/json/blob/develop/include/nlohmann/detail/conversions/to_chars.hpp#L754 -
What is the expected behavior?
Code should be compiled. -
And what is the actual behavior instead?
It doesn't compile. -
Which compiler and operating system are you using? Is it a supported compiler?
I'm on gcc 5.3 with C++14 with RH 6 compatible ABI
(https://www.softwarecollections.org/en/scls/rhscl/devtoolset-4/ - RH 6) -
Did you use a released version of the library or the version from the
develop
branch?
Both. -
If you experience a compilation error: can you compile and run the unit tests?
__STDC_LIMIT_MACROS
was added to the project and the issue has gone.
Possible fix:
#if !defined(NDEBUG) && !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS
#endif
(may be with #pragma push_macro
and #pragma pop_macro
)
to
https://github.com/nlohmann/json/blob/develop/include/nlohmann/detail/conversions/to_chars.hpp#L2