Merge 435fc32a69 into d713727f22
This commit is contained in:
commit
1c8094d395
@ -5542,8 +5542,10 @@ class basic_json
|
|||||||
@brief comparison: equal
|
@brief comparison: equal
|
||||||
@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));
|
||||||
@ -5553,8 +5555,10 @@ class basic_json
|
|||||||
@brief comparison: equal
|
@brief comparison: equal
|
||||||
@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);
|
||||||
|
|||||||
@ -16649,8 +16649,10 @@ class basic_json
|
|||||||
@brief comparison: equal
|
@brief comparison: equal
|
||||||
@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));
|
||||||
@ -16660,8 +16662,10 @@ class basic_json
|
|||||||
@brief comparison: equal
|
@brief comparison: equal
|
||||||
@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