mirror of
https://github.com/nlohmann/json.git
synced 2026-03-08 02:01:24 +00:00
Add proper C++20 module support (#4799)
This commit is contained in:
22
src/modules/json.cppm
Normal file
22
src/modules/json.cppm
Normal file
@@ -0,0 +1,22 @@
|
||||
module;
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
export module nlohmann.json;
|
||||
|
||||
export namespace nlohmann {
|
||||
template <typename T = void, typename SFINAE = void>
|
||||
using adl_serializer = ::nlohmann::adl_serializer<T, SFINAE>;
|
||||
|
||||
using basic_json = ::nlohmann::basic_json<>;
|
||||
|
||||
using json = ::nlohmann::json;
|
||||
|
||||
template <typename RefStringType>
|
||||
using json_pointer = ::nlohmann::json_pointer<RefStringType>;
|
||||
|
||||
using ::nlohmann::ordered_json;
|
||||
|
||||
template <class Key, class T, class IgnoredLess, class Allocator>
|
||||
using ordered_map = ::nlohmann::ordered_map<Key, T, IgnoredLess, Allocator>;
|
||||
} // namespace nlohmann
|
||||
Reference in New Issue
Block a user