Merge 435fc32a69 into d713727f22
This commit is contained in:
commit
1c8094d395
@ -5543,7 +5543,9 @@ class basic_json
|
|||||||
@copydoc operator==(const_reference, const_reference)
|
@copydoc operator==(const_reference, const_reference)
|
||||||
*/
|
*/
|
||||||
template < typename ScalarType, typename std::enable_if <
|
template < typename ScalarType, typename std::enable_if <
|
||||||
std::is_scalar<ScalarType>::value, int>::type = 0>
|
std::is_scalar<ScalarType>::value, int >::type = 0,
|
||||||
|
typename std::enable_if <
|
||||||
|
std::is_same<std::nullptr_t, std::remove_cv<ScalarType>>::value, int >::type = 0 >
|
||||||
friend bool operator==(const_reference lhs, const ScalarType rhs) noexcept
|
friend bool operator==(const_reference lhs, const ScalarType rhs) noexcept
|
||||||
{
|
{
|
||||||
return (lhs == basic_json(rhs));
|
return (lhs == basic_json(rhs));
|
||||||
@ -5554,7 +5556,9 @@ class basic_json
|
|||||||
@copydoc operator==(const_reference, const_reference)
|
@copydoc operator==(const_reference, const_reference)
|
||||||
*/
|
*/
|
||||||
template < typename ScalarType, typename std::enable_if <
|
template < typename ScalarType, typename std::enable_if <
|
||||||
std::is_scalar<ScalarType>::value, int>::type = 0>
|
std::is_scalar<ScalarType>::value, int >::type = 0,
|
||||||
|
typename std::enable_if <
|
||||||
|
std::is_same<std::nullptr_t, std::remove_cv<ScalarType>>::value, int >::type = 0 >
|
||||||
friend bool operator==(const ScalarType lhs, const_reference rhs) noexcept
|
friend bool operator==(const ScalarType lhs, const_reference rhs) noexcept
|
||||||
{
|
{
|
||||||
return (basic_json(lhs) == rhs);
|
return (basic_json(lhs) == rhs);
|
||||||
|
|||||||
@ -16650,7 +16650,9 @@ class basic_json
|
|||||||
@copydoc operator==(const_reference, const_reference)
|
@copydoc operator==(const_reference, const_reference)
|
||||||
*/
|
*/
|
||||||
template < typename ScalarType, typename std::enable_if <
|
template < typename ScalarType, typename std::enable_if <
|
||||||
std::is_scalar<ScalarType>::value, int>::type = 0>
|
std::is_scalar<ScalarType>::value, int >::type = 0,
|
||||||
|
typename std::enable_if <
|
||||||
|
!std::is_same<std::nullptr_t, std::remove_cv<ScalarType>>::value, int >::type = 0 >
|
||||||
friend bool operator==(const_reference lhs, const ScalarType rhs) noexcept
|
friend bool operator==(const_reference lhs, const ScalarType rhs) noexcept
|
||||||
{
|
{
|
||||||
return (lhs == basic_json(rhs));
|
return (lhs == basic_json(rhs));
|
||||||
@ -16661,7 +16663,9 @@ class basic_json
|
|||||||
@copydoc operator==(const_reference, const_reference)
|
@copydoc operator==(const_reference, const_reference)
|
||||||
*/
|
*/
|
||||||
template < typename ScalarType, typename std::enable_if <
|
template < typename ScalarType, typename std::enable_if <
|
||||||
std::is_scalar<ScalarType>::value, int>::type = 0>
|
std::is_scalar<ScalarType>::value, int >::type = 0,
|
||||||
|
typename std::enable_if <
|
||||||
|
!std::is_same<std::nullptr_t, std::remove_cv<ScalarType>>::value, int >::type = 0 >
|
||||||
friend bool operator==(const ScalarType lhs, const_reference rhs) noexcept
|
friend bool operator==(const ScalarType lhs, const_reference rhs) noexcept
|
||||||
{
|
{
|
||||||
return (basic_json(lhs) == rhs);
|
return (basic_json(lhs) == rhs);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user