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

pre-increment operator should return reference, not value.

parent 42802428
/*
/*
Mathieu Stefani, 28 février 2016
A collection of sample iterator adapters
*/
......@@ -18,9 +18,9 @@ struct FlatMapIteratorAdapter {
: it(_it)
{ }
FlatMapIteratorAdapter operator++() {
FlatMapIteratorAdapter& operator++() {
++it;
return FlatMapIteratorAdapter(it);
return *this;
}
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