diff --git a/docs/mkdocs/docs/features/modules.md b/docs/mkdocs/docs/features/modules.md index 884e9b07a..6068108b8 100644 --- a/docs/mkdocs/docs/features/modules.md +++ b/docs/mkdocs/docs/features/modules.md @@ -25,6 +25,7 @@ json data = json::parse(f); ## Modules do not export macros It should be noted that as modules do not export macros, the `nlohmann.json` module will not export any macros, but rather only the following symbols: + - `nlohmann::adl_serializer` - `nlohmann::basic_json` - `nlohmann::json` diff --git a/src/modules/json.cppm b/src/modules/json.cppm index 71a4bd827..5f55acc2b 100644 --- a/src/modules/json.cppm +++ b/src/modules/json.cppm @@ -5,18 +5,10 @@ module; export module nlohmann.json; export namespace nlohmann { - template - using adl_serializer = ::nlohmann::adl_serializer; - - using basic_json = ::nlohmann::basic_json<>; - - using json = ::nlohmann::json; - - template - using json_pointer = ::nlohmann::json_pointer; - + using ::nlohmann::adl_serializer; + using ::nlohmann::basic_json; + using ::nlohmann::json; + using ::nlohmann::json_pointer; using ::nlohmann::ordered_json; - - template - using ordered_map = ::nlohmann::ordered_map; + using ::nlohmann::ordered_map; } // namespace nlohmann