Added json_fwd.hpp.
This file helps to reduce compilation dependencies by providing a forward declaration of nlohmann::basic_json and the typedef nlohmann::json.
This commit is contained in:
parent
a0ef5a194c
commit
a8af911e80
30
src/json_fwd.hpp
Normal file
30
src/json_fwd.hpp
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#ifndef NLOHMANN_JSON_FWD_HPP
|
||||||
|
#define NLOHMANN_JSON_FWD_HPP
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
#include <map>
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
namespace nlohmann
|
||||||
|
{
|
||||||
|
|
||||||
|
template <
|
||||||
|
template<typename U, typename V, typename... Args> class ObjectType,
|
||||||
|
template<typename U, typename... Args> class ArrayType,
|
||||||
|
class StringType,
|
||||||
|
class BooleanType,
|
||||||
|
class NumberIntegerType,
|
||||||
|
class NumberUnsignedType,
|
||||||
|
class NumberFloatType,
|
||||||
|
template<typename U> class AllocatorType
|
||||||
|
>
|
||||||
|
class basic_json;
|
||||||
|
|
||||||
|
using json = basic_json<std::map,std::vector,std::string,bool,std::int64_t,
|
||||||
|
std::uint64_t,double,std::allocator>;
|
||||||
|
|
||||||
|
} // namespace nlohmann
|
||||||
|
|
||||||
|
#endif // NLOHMANN_JSON_FWD_HPP
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user