From a8af911e802e4949f02ba456402ae2be4e9dc7fb Mon Sep 17 00:00:00 2001 From: Ralph Tandetzky Date: Wed, 12 Oct 2016 11:18:55 +0200 Subject: [PATCH] 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. --- src/json_fwd.hpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/json_fwd.hpp diff --git a/src/json_fwd.hpp b/src/json_fwd.hpp new file mode 100644 index 0000000000..afe8a7deb9 --- /dev/null +++ b/src/json_fwd.hpp @@ -0,0 +1,30 @@ +#ifndef NLOHMANN_JSON_FWD_HPP +#define NLOHMANN_JSON_FWD_HPP + +#include +#include +#include +#include + +namespace nlohmann +{ + +template < + template class ObjectType, + template class ArrayType, + class StringType, + class BooleanType, + class NumberIntegerType, + class NumberUnsignedType, + class NumberFloatType, + template class AllocatorType + > +class basic_json; + +using json = basic_json; + +} // namespace nlohmann + +#endif // NLOHMANN_JSON_FWD_HPP +