Commit 308880d2 authored by Dennis Jenkins's avatar Dennis Jenkins

pre-increment operator should return reference, not value.

parent 42802428
...@@ -18,9 +18,9 @@ struct FlatMapIteratorAdapter { ...@@ -18,9 +18,9 @@ struct FlatMapIteratorAdapter {
: it(_it) : it(_it)
{ } { }
FlatMapIteratorAdapter operator++() { FlatMapIteratorAdapter& operator++() {
++it; ++it;
return FlatMapIteratorAdapter(it); return *this;
} }
const Value& operator*() { const Value& operator*() {
......
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