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:
Ralph Tandetzky 2016-10-12 11:18:55 +02:00 committed by GitHub
parent a0ef5a194c
commit a8af911e80

30
src/json_fwd.hpp Normal file
View 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