mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
@ -1247,7 +1247,8 @@ class basic_json
|
||||
@brief create a JSON value from an existing one
|
||||
|
||||
This is a constructor for existing @ref basic_json types.
|
||||
It does not hijack copy/move constructors, since the parameter has different template arguments than the current ones.
|
||||
It does not hijack copy/move constructors, since the parameter has different
|
||||
template arguments than the current ones.
|
||||
|
||||
The constructor tries to convert the internal @ref m_value of the parameter.
|
||||
|
||||
@ -2489,7 +2490,8 @@ class basic_json
|
||||
/*!
|
||||
@brief get special-case overload
|
||||
|
||||
This overloads converts the current @ref basic_json in a different @ref basic_json type
|
||||
This overloads converts the current @ref basic_json in a different
|
||||
@ref basic_json type
|
||||
|
||||
@tparam BasicJsonType == @ref basic_json
|
||||
|
||||
@ -2502,15 +2504,12 @@ class basic_json
|
||||
*/
|
||||
template<typename BasicJsonType, detail::enable_if_t<
|
||||
not std::is_same<BasicJsonType, basic_json>::value and
|
||||
detail::is_basic_json<BasicJsonType>::value
|
||||
,
|
||||
int> = 0>
|
||||
detail::is_basic_json<BasicJsonType>::value, int> = 0>
|
||||
BasicJsonType get() const
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
@brief get a value (explicit)
|
||||
|
||||
|
Reference in New Issue
Block a user