diff options
Diffstat (limited to 'fake-json.hpp')
| -rw-r--r-- | fake-json.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/fake-json.hpp b/fake-json.hpp new file mode 100644 index 00000000..5965fbbc --- /dev/null +++ b/fake-json.hpp @@ -0,0 +1,30 @@ +#pragma once +#ifndef __CLION_IDE__ +# include <nlohmann/json.hpp> +#else + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma ide diagnostic ignored "NotImplementedFunctions" + +namespace nlohmann { + struct json { + template<typename t> operator t() const; + const json& dump(int) const; + template<typename t> json(const t&); + json(); + }; + template<typename t> json& operator>>(const t&, json&); + template<typename t> json& operator<<(t&, const json&); + template<typename t> struct adl_serializer { + static void to_json(json&, const t&); + static void from_json(const json&, t&); + }; + template<typename t> void from_json(const json&, t&); + template<typename t> void to_json(const json&, const t&); +} // namespace nlohmann + +#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(...) + +#pragma clang diagnostic pop +#endif |
