Skip to content

Commit 3c4fd32

Browse files
Add since version tags
Signed-off-by: Nikhil <[email protected]>
1 parent 937e650 commit 3c4fd32

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/nlohmann/detail/macro_scope.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@
409409
/*!
410410
@brief macro
411411
@def NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT
412+
@since version 3.11.0
412413
*/
413414
#define NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(Type, ...) \
414415
friend void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
@@ -417,6 +418,7 @@
417418
/*!
418419
@brief macro
419420
@def NLOHMANN_DEFINE_TYPE_INTRUSIVE_ONLY_SERIALIZE
421+
@since version 3.11.x
420422
*/
421423
#define NLOHMANN_DEFINE_TYPE_INTRUSIVE_ONLY_SERIALIZE(Type, ...) \
422424
friend void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) }
@@ -433,6 +435,7 @@
433435
/*!
434436
@brief macro
435437
@def NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT
438+
@since version 3.11.0
436439
*/
437440
#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT(Type, ...) \
438441
inline void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
@@ -441,6 +444,7 @@
441444
/*!
442445
@brief macro
443446
@def NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_ONLY_SERIALIZE
447+
@since version 3.11.x
444448
*/
445449
#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_ONLY_SERIALIZE(Type, ...) \
446450
inline void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) }

single_include/nlohmann/json.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2775,6 +2775,7 @@ JSON_HEDLEY_DIAGNOSTIC_POP
27752775
/*!
27762776
@brief macro
27772777
@def NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT
2778+
@since version 3.11.0
27782779
*/
27792780
#define NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(Type, ...) \
27802781
friend void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
@@ -2783,6 +2784,7 @@ JSON_HEDLEY_DIAGNOSTIC_POP
27832784
/*!
27842785
@brief macro
27852786
@def NLOHMANN_DEFINE_TYPE_INTRUSIVE_ONLY_SERIALIZE
2787+
@since version 3.11.x
27862788
*/
27872789
#define NLOHMANN_DEFINE_TYPE_INTRUSIVE_ONLY_SERIALIZE(Type, ...) \
27882790
friend void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) }
@@ -2799,6 +2801,7 @@ JSON_HEDLEY_DIAGNOSTIC_POP
27992801
/*!
28002802
@brief macro
28012803
@def NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT
2804+
@since version 3.11.0
28022805
*/
28032806
#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT(Type, ...) \
28042807
inline void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
@@ -2807,6 +2810,7 @@ JSON_HEDLEY_DIAGNOSTIC_POP
28072810
/*!
28082811
@brief macro
28092812
@def NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_ONLY_SERIALIZE
2813+
@since version 3.11.x
28102814
*/
28112815
#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_ONLY_SERIALIZE(Type, ...) \
28122816
inline void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) }

0 commit comments

Comments
 (0)