diff --git a/src/json.hpp b/src/json.hpp index 2c4fcc6ff1722d453ef9fe5758a8fa3d79aa483b..6e5f515a7b53706aa20b846bcca5f6f1a151b243 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -5501,7 +5501,7 @@ class basic_json } /// inequality operator (needed for range-based for) - bool operator!= (const iteration_proxy_internal& o) + bool operator!= (const iteration_proxy_internal& o) const { return anchor != o.anchor; } diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index a5cf1db403e70b73fdf69a7b13e621fe38f559b6..09bba9cddeea3459f8020550ddf4f6d5ccfc8caa 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -5501,7 +5501,7 @@ class basic_json } /// inequality operator (needed for range-based for) - bool operator!= (const iteration_proxy_internal& o) + bool operator!= (const iteration_proxy_internal& o) const { return anchor != o.anchor; }