Niels Lohmann

Results 421 comments of Niels Lohmann

Which CMake version are you using? Can you share the complete output of running CMake?

This is as expected. Your CMake version is so old that `JSON_BuildTests_INIT` is unconditionally set to `OFF`, see https://github.com/nlohmann/json/blob/develop/CMakeLists.txt#L35. Without setting `JSON_BuildTests` to `ON`, the tests will not be built....

When the library is included as third-party, no tests should be compiled unless explicitly specified with `-DJSON_BuildTests=ON`. This is also documented in the README. In which situation would you expect...

> ## 🔴 Amalgamation check failed! 🔴 > The source code has not been amalgamated. @fmeum Please read and follow the [Contribution Guidelines](https://github.com/nlohmann/json/blob/develop/.github/CONTRIBUTING.md#files-to-change). @falbrechtskirchinger The warning is odd - the...

My bad. Thanks for the quick response!

What is your goal with ```cpp NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(Data) ``` ? As per https://json.nlohmann.me/api/macros/nlohmann_define_type_intrusive/, there must be a member given. Can you give an example how the JSON you want to generate...

(see also https://github.com/nlohmann/json/discussions/3865#discussioncomment-4370686)

It seems that it was a bug before to have supported an example with `std::variant`.

(Also, please update from the develop branch as it has a working CI now.)