diff --git a/tests/src/unit-bson.cpp b/tests/src/unit-bson.cpp index a231c8cca..fa07e9d9c 100644 --- a/tests/src/unit-bson.cpp +++ b/tests/src/unit-bson.cpp @@ -10,6 +10,9 @@ #include using nlohmann::json; +#ifdef JSON_TEST_NO_GLOBAL_UDLS +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) +#endif #include #include