Niels Lohmann

Results 47 issues of Niels Lohmann

Changes the `is_comparable` helper to avoid a deprecation warning. Closes #4621.

review needed
M

In https://github.com/nlohmann/json/pull/4753, a new warning was raised by the new Cppcheck version: ``` include/nlohmann/detail/output/serializer.hpp:835:36: warning: %g in format string (no. 2) requires ‘double’ but the argument type is ‘number_float_t’. [invalidPrintfArgType_float]...

kind: bug
confirmed
solution: proposed fix

The serialization of floating-point numbers is handled in two code paths. If `number_float_t` is an IEEE-754 single or double precision number, the Grisu2 algorithm is used. Otherwise, the serialization is...

state: stale
review needed
L
CMake

Add an enumerator `keep` to `error_handler_t` to allow to keep the input as-is in case of UTF-8 errors. Fixes #4552

documentation
state: stale
L
tests

**Describe the bug** When `_HAS_EXCEPTIONS` is defined to `0`, the constructors of the exception classes do not copy the `what_arg`, but only store the pointer: https://github.com/microsoft/STL/blob/472161105d596192194d4715ccad307c6c163b4a/stl/inc/exception#L90 This leads to errors...

bug
vNext

Using the default workflow file.

state: stale
M
CI

### Description Several issues describe problems with Visual Studio: - #4974 - #5002 - #4996 - #4998 - #3970 I need help here, because I do not use MSVC myself...

platform: visual studio
state: help needed