diff --git a/src/json.hpp b/src/json.hpp index 9511f02cc..269042f89 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -2931,8 +2931,8 @@ class basic_json */ template ::value or - std::is_same::value + std::is_same::value or + std::is_same::value , int>::type = 0> InteratorType erase(InteratorType first, InteratorType last) @@ -4852,7 +4852,7 @@ class basic_json }; /// an iterator value - union internal_iterator + struct internal_iterator { /// iterator for JSON objects typename object_t::iterator object_iterator;