Fix global UDLs (#3646)

* Add ci_test_noglobaludls to CI

* Really default JSON_GLOBAL_UDLS to 1

* Test global UDLs

* Suppress warnings

* Clarify documentation
This commit is contained in:
Florian Albrechtskirchinger authored and GitHub committed 2022-08-01 22:42:35 +02:00
1 parent 817a4a2117
commit cbaf1033be
19 files changed
+58 -25

No files matched your search

+3 -1
View File
@@ -10,7 +10,9 @@
#include "doctest_compatibility.h"
#include <nlohmann/json.hpp>
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
#ifdef JSON_TEST_NO_GLOBAL_UDLS
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
#endif
TEST_CASE_TEMPLATE("element access 2", Json, nlohmann::json, nlohmann::ordered_json)
{