🚨 fix warning

pull/2550/head
Niels Lohmann 2020-12-29 21:04:41 +01:00
parent 4402176df5
commit c886646707
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(person_without_private_data_2, age, name, met
class person_with_private_alphabet
{
public:
bool operator==(const person_with_private_alphabet& other)
bool operator==(const person_with_private_alphabet& other) const
{
return a == other.a &&
b == other.b &&
@ -169,7 +169,7 @@ class person_with_private_alphabet
class person_with_public_alphabet
{
public:
bool operator==(const person_with_public_alphabet& other)
bool operator==(const person_with_public_alphabet& other) const
{
return a == other.a &&
b == other.b &&