@@ -204,7 +204,7 @@ using json = basic_json<>;
204
204
205
205
/*!
206
206
@brief macro to briefly define a mapping between an enum and JSON
207
- @macro NLOHMANN_JSON_SERIALIZE_ENUM
207
+ @def NLOHMANN_JSON_SERIALIZE_ENUM
208
208
@since version 3.4.0
209
209
*/
210
210
#define NLOHMANN_JSON_SERIALIZE_ENUM(ENUM_TYPE, ...) \
@@ -11635,7 +11635,7 @@ class json_pointer
11635
11635
11636
11636
@since version 2.0.0
11637
11637
*/
11638
- std::string to_string() const noexcept
11638
+ std::string to_string() const
11639
11639
{
11640
11640
return std::accumulate(reference_tokens.begin(), reference_tokens.end(),
11641
11641
std::string{},
@@ -11690,7 +11690,7 @@ class json_pointer
11690
11690
}
11691
11691
11692
11692
/// return whether pointer points to the root document
11693
- bool is_root() const
11693
+ bool is_root() const noexcept
11694
11694
{
11695
11695
return reference_tokens.empty();
11696
11696
}
@@ -12142,7 +12142,7 @@ class json_pointer
12142
12142
{}
12143
12143
}
12144
12144
12145
- /// escape "~"" to "~0" and "/" to "~1"
12145
+ /// escape "~" to "~0" and "/" to "~1"
12146
12146
static std::string escape(std::string s)
12147
12147
{
12148
12148
replace_substring(s, "~", "~0");
@@ -12283,6 +12283,7 @@ class json_pointer
12283
12283
12284
12284
namespace nlohmann
12285
12285
{
12286
+
12286
12287
template<typename, typename>
12287
12288
struct adl_serializer
12288
12289
{
@@ -12292,14 +12293,13 @@ struct adl_serializer
12292
12293
This function is usually called by the `get()` function of the
12293
12294
@ref basic_json class (either explicit or via conversion operators).
12294
12295
12295
- @param[in] j JSON value to read from
12296
+ @param[in] j JSON value to read from
12296
12297
@param[in,out] val value to write to
12297
12298
*/
12298
12299
template<typename BasicJsonType, typename ValueType>
12299
12300
static auto from_json(BasicJsonType&& j, ValueType& val) noexcept(
12300
- noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val))) -> decltype(
12301
- ::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void()
12302
- )
12301
+ noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val)))
12302
+ -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void())
12303
12303
{
12304
12304
::nlohmann::from_json(std::forward<BasicJsonType>(j), val);
12305
12305
}
@@ -12311,17 +12311,17 @@ struct adl_serializer
12311
12311
class.
12312
12312
12313
12313
@param[in,out] j JSON value to write to
12314
- @param[in] val value to read from
12314
+ @param[in] val value to read from
12315
12315
*/
12316
12316
template <typename BasicJsonType, typename ValueType>
12317
12317
static auto to_json(BasicJsonType& j, ValueType&& val) noexcept(
12318
12318
noexcept(::nlohmann::to_json(j, std::forward<ValueType>(val))))
12319
- -> decltype(::nlohmann::to_json(j, std::forward<ValueType>(val)),
12320
- void())
12319
+ -> decltype(::nlohmann::to_json(j, std::forward<ValueType>(val)), void())
12321
12320
{
12322
12321
::nlohmann::to_json(j, std::forward<ValueType>(val));
12323
12322
}
12324
12323
};
12324
+
12325
12325
} // namespace nlohmann
12326
12326
12327
12327
@@ -15660,7 +15660,7 @@ class basic_json
15660
15660
15661
15661
/*!
15662
15662
@brief overload for a default value of type const char*
15663
- @copydoc basic_json::value(const typename object_t::key_type&, ValueType) const
15663
+ @copydoc basic_json::value(const typename object_t::key_type&, const ValueType& ) const
15664
15664
*/
15665
15665
string_t value(const typename object_t::key_type& key, const char* default_value) const
15666
15666
{
@@ -18928,9 +18928,10 @@ class basic_json
18928
18928
@complexity Linear in the size of the JSON value @a j.
18929
18929
18930
18930
@sa http://bsonspec.org/spec.html
18931
- @sa @ref from_bson(detail::input_adapter, const bool strict) for the
18931
+ @sa @ref from_bson(detail::input_adapter&& , const bool strict) for the
18932
18932
analogous deserialization
18933
- @sa @ref to_ubjson(const basic_json&) for the related UBJSON format
18933
+ @sa @ref to_ubjson(const basic_json&, const bool, const bool) for the
18934
+ related UBJSON format
18934
18935
@sa @ref to_cbor(const basic_json&) for the related CBOR format
18935
18936
@sa @ref to_msgpack(const basic_json&) for the related MessagePack format
18936
18937
*/
@@ -19157,7 +19158,7 @@ class basic_json
19157
19158
related CBOR format
19158
19159
@sa @ref from_ubjson(detail::input_adapter&&, const bool, const bool) for
19159
19160
the related UBJSON format
19160
- @sa @ref from_bson(detail::input_adapter, const bool, const bool) for
19161
+ @sa @ref from_bson(detail::input_adapter&& , const bool, const bool) for
19161
19162
the related BSON format
19162
19163
19163
19164
@since version 2.0.9; parameter @a start_index since 2.1.1; changed to
@@ -19244,7 +19245,7 @@ class basic_json
19244
19245
related CBOR format
19245
19246
@sa @ref from_msgpack(detail::input_adapter&&, const bool, const bool) for
19246
19247
the related MessagePack format
19247
- @sa @ref from_bson(detail::input_adapter, const bool, const bool) for
19248
+ @sa @ref from_bson(detail::input_adapter&& , const bool, const bool) for
19248
19249
the related BSON format
19249
19250
19250
19251
@since version 3.1.0; added @a allow_exceptions parameter since 3.2.0
@@ -19323,13 +19324,12 @@ class basic_json
19323
19324
@throw parse_error.114 if an unsupported BSON record type is encountered
19324
19325
19325
19326
@sa http://bsonspec.org/spec.html
19326
- @sa @ref to_bson(const basic_json&, const bool, const bool) for the
19327
- analogous serialization
19328
- @sa @ref from_cbor(detail::input_adapter, const bool, const bool) for the
19327
+ @sa @ref to_bson(const basic_json&) for the analogous serialization
19328
+ @sa @ref from_cbor(detail::input_adapter&&, const bool, const bool) for the
19329
19329
related CBOR format
19330
- @sa @ref from_msgpack(detail::input_adapter, const bool, const bool) for
19330
+ @sa @ref from_msgpack(detail::input_adapter&& , const bool, const bool) for
19331
19331
the related MessagePack format
19332
- @sa @ref from_ubjson(detail::input_adapter, const bool, const bool) for the
19332
+ @sa @ref from_ubjson(detail::input_adapter&& , const bool, const bool) for the
19333
19333
related UBJSON format
19334
19334
*/
19335
19335
static basic_json from_bson(detail::input_adapter&& i,
0 commit comments