Commit e64dc532 authored by Niels's avatar Niels

fixed build

parent b5a05e11
......@@ -5752,7 +5752,7 @@ class basic_json
}
/// increment operator (needed for range-based for)
iterator_wrapper_internal operator++()
iterator_wrapper_internal& operator++()
{
++anchor;
++array_index;
......
......@@ -5752,7 +5752,7 @@ class basic_json
}
/// increment operator (needed for range-based for)
iterator_wrapper_internal operator++()
iterator_wrapper_internal& operator++()
{
++anchor;
++array_index;
......
......@@ -7554,8 +7554,8 @@ TEST_CASE("iterator_wrapper")
json j_object = {{"key1", 1}, {"key2", 2}};
for (auto it : json::iterator_wrapper(j_object))
{
CHECK((it.first == "key1" or it.first == "key2"));
CHECK((it.key() == "key1" or it.key() == "key2"));
CHECK((it.first == json("key1") or it.first == json("key2")));
CHECK((it.key() == json("key1") or it.key() == json("key2")));
CHECK(it.key() == it.first);
CHECK((it.second == json(1) or it.second == json(2)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment