mirror of
https://github.com/nlohmann/json.git
synced 2026-10-12 09:27:13 +00:00
2 files changed
+22
-8
No files matched your search
+11
-4
@@ -29,6 +29,10 @@ SOFTWARE.
|
|||||||
#ifndef NLOHMANN_JSON_HPP
|
#ifndef NLOHMANN_JSON_HPP
|
||||||
#define NLOHMANN_JSON_HPP
|
#define NLOHMANN_JSON_HPP
|
||||||
|
|
||||||
|
#define NLOHMANN_JSON_VERSION_MAJOR 3
|
||||||
|
#define NLOHMANN_JSON_VERSION_MINOR 0
|
||||||
|
#define NLOHMANN_JSON_VERSION_PATCH 1
|
||||||
|
|
||||||
#include <algorithm> // all_of, find, for_each
|
#include <algorithm> // all_of, find, for_each
|
||||||
#include <cassert> // assert
|
#include <cassert> // assert
|
||||||
#include <ciso646> // and, not, or
|
#include <ciso646> // and, not, or
|
||||||
@@ -308,10 +312,13 @@ class basic_json
|
|||||||
result["copyright"] = "(C) 2013-2017 Niels Lohmann";
|
result["copyright"] = "(C) 2013-2017 Niels Lohmann";
|
||||||
result["name"] = "JSON for Modern C++";
|
result["name"] = "JSON for Modern C++";
|
||||||
result["url"] = "https://github.com/nlohmann/json";
|
result["url"] = "https://github.com/nlohmann/json";
|
||||||
result["version"] =
|
result["version"]["string"] =
|
||||||
{
|
std::to_string(NLOHMANN_JSON_VERSION_MAJOR) + "." +
|
||||||
{"string", "3.0.1"}, {"major", 3}, {"minor", 0}, {"patch", 1}
|
std::to_string(NLOHMANN_JSON_VERSION_MINOR) + "." +
|
||||||
};
|
std::to_string(NLOHMANN_JSON_VERSION_PATCH);
|
||||||
|
result["version"]["major"] = NLOHMANN_JSON_VERSION_MAJOR;
|
||||||
|
result["version"]["minor"] = NLOHMANN_JSON_VERSION_MINOR;
|
||||||
|
result["version"]["patch"] = NLOHMANN_JSON_VERSION_PATCH;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
result["platform"] = "win32";
|
result["platform"] = "win32";
|
||||||
|
|||||||
+11
-4
@@ -29,6 +29,10 @@ SOFTWARE.
|
|||||||
#ifndef NLOHMANN_JSON_HPP
|
#ifndef NLOHMANN_JSON_HPP
|
||||||
#define NLOHMANN_JSON_HPP
|
#define NLOHMANN_JSON_HPP
|
||||||
|
|
||||||
|
#define NLOHMANN_JSON_VERSION_MAJOR 3
|
||||||
|
#define NLOHMANN_JSON_VERSION_MINOR 0
|
||||||
|
#define NLOHMANN_JSON_VERSION_PATCH 1
|
||||||
|
|
||||||
#include <algorithm> // all_of, find, for_each
|
#include <algorithm> // all_of, find, for_each
|
||||||
#include <cassert> // assert
|
#include <cassert> // assert
|
||||||
#include <ciso646> // and, not, or
|
#include <ciso646> // and, not, or
|
||||||
@@ -9885,10 +9889,13 @@ class basic_json
|
|||||||
result["copyright"] = "(C) 2013-2017 Niels Lohmann";
|
result["copyright"] = "(C) 2013-2017 Niels Lohmann";
|
||||||
result["name"] = "JSON for Modern C++";
|
result["name"] = "JSON for Modern C++";
|
||||||
result["url"] = "https://github.com/nlohmann/json";
|
result["url"] = "https://github.com/nlohmann/json";
|
||||||
result["version"] =
|
result["version"]["string"] =
|
||||||
{
|
std::to_string(NLOHMANN_JSON_VERSION_MAJOR) + "." +
|
||||||
{"string", "3.0.1"}, {"major", 3}, {"minor", 0}, {"patch", 1}
|
std::to_string(NLOHMANN_JSON_VERSION_MINOR) + "." +
|
||||||
};
|
std::to_string(NLOHMANN_JSON_VERSION_PATCH);
|
||||||
|
result["version"]["major"] = NLOHMANN_JSON_VERSION_MAJOR;
|
||||||
|
result["version"]["minor"] = NLOHMANN_JSON_VERSION_MINOR;
|
||||||
|
result["version"]["patch"] = NLOHMANN_JSON_VERSION_PATCH;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
result["platform"] = "win32";
|
result["platform"] = "win32";
|
||||||
|
|||||||
Reference in new issue
Block a user