mirror of
https://github.com/nlohmann/json.git
synced 2026-07-21 19:23:03 +04:00
Address CWG issue 2521 (#4957)
This commit is contained in:
@@ -5276,6 +5276,7 @@ JSON_HEDLEY_NON_NULL(1)
|
|||||||
#if !defined(JSON_HEDLEY_GCC_VERSION) || JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0)
|
#if !defined(JSON_HEDLEY_GCC_VERSION) || JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0)
|
||||||
inline nlohmann::json operator""_json(const char* s, std::size_t n)
|
inline nlohmann::json operator""_json(const char* s, std::size_t n)
|
||||||
#else
|
#else
|
||||||
|
// GCC 4.8 requires a space between "" and suffix
|
||||||
inline nlohmann::json operator"" _json(const char* s, std::size_t n)
|
inline nlohmann::json operator"" _json(const char* s, std::size_t n)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@@ -5288,6 +5289,7 @@ JSON_HEDLEY_NON_NULL(1)
|
|||||||
#if !defined(JSON_HEDLEY_GCC_VERSION) || JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0)
|
#if !defined(JSON_HEDLEY_GCC_VERSION) || JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0)
|
||||||
inline nlohmann::json::json_pointer operator""_json_pointer(const char* s, std::size_t n)
|
inline nlohmann::json::json_pointer operator""_json_pointer(const char* s, std::size_t n)
|
||||||
#else
|
#else
|
||||||
|
// GCC 4.8 requires a space between "" and suffix
|
||||||
inline nlohmann::json::json_pointer operator"" _json_pointer(const char* s, std::size_t n)
|
inline nlohmann::json::json_pointer operator"" _json_pointer(const char* s, std::size_t n)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@@ -5357,6 +5359,7 @@ inline void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL& j1, nlohmann::NLOHMANN_BASIC
|
|||||||
using nlohmann::literals::json_literals::operator""_json; // NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
using nlohmann::literals::json_literals::operator""_json; // NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
||||||
using nlohmann::literals::json_literals::operator""_json_pointer; //NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
using nlohmann::literals::json_literals::operator""_json_pointer; //NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
||||||
#else
|
#else
|
||||||
|
// GCC 4.8 requires a space between "" and suffix
|
||||||
using nlohmann::literals::json_literals::operator"" _json; // NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
using nlohmann::literals::json_literals::operator"" _json; // NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
||||||
using nlohmann::literals::json_literals::operator"" _json_pointer; //NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
using nlohmann::literals::json_literals::operator"" _json_pointer; //NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -25394,6 +25394,7 @@ JSON_HEDLEY_NON_NULL(1)
|
|||||||
#if !defined(JSON_HEDLEY_GCC_VERSION) || JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0)
|
#if !defined(JSON_HEDLEY_GCC_VERSION) || JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0)
|
||||||
inline nlohmann::json operator""_json(const char* s, std::size_t n)
|
inline nlohmann::json operator""_json(const char* s, std::size_t n)
|
||||||
#else
|
#else
|
||||||
|
// GCC 4.8 requires a space between "" and suffix
|
||||||
inline nlohmann::json operator"" _json(const char* s, std::size_t n)
|
inline nlohmann::json operator"" _json(const char* s, std::size_t n)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@@ -25406,6 +25407,7 @@ JSON_HEDLEY_NON_NULL(1)
|
|||||||
#if !defined(JSON_HEDLEY_GCC_VERSION) || JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0)
|
#if !defined(JSON_HEDLEY_GCC_VERSION) || JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0)
|
||||||
inline nlohmann::json::json_pointer operator""_json_pointer(const char* s, std::size_t n)
|
inline nlohmann::json::json_pointer operator""_json_pointer(const char* s, std::size_t n)
|
||||||
#else
|
#else
|
||||||
|
// GCC 4.8 requires a space between "" and suffix
|
||||||
inline nlohmann::json::json_pointer operator"" _json_pointer(const char* s, std::size_t n)
|
inline nlohmann::json::json_pointer operator"" _json_pointer(const char* s, std::size_t n)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@@ -25475,6 +25477,7 @@ inline void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL& j1, nlohmann::NLOHMANN_BASIC
|
|||||||
using nlohmann::literals::json_literals::operator""_json; // NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
using nlohmann::literals::json_literals::operator""_json; // NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
||||||
using nlohmann::literals::json_literals::operator""_json_pointer; //NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
using nlohmann::literals::json_literals::operator""_json_pointer; //NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
||||||
#else
|
#else
|
||||||
|
// GCC 4.8 requires a space between "" and suffix
|
||||||
using nlohmann::literals::json_literals::operator"" _json; // NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
using nlohmann::literals::json_literals::operator"" _json; // NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
||||||
using nlohmann::literals::json_literals::operator"" _json_pointer; //NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
using nlohmann::literals::json_literals::operator"" _json_pointer; //NOLINT(misc-unused-using-decls,google-global-names-in-headers)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user