added references to items()

Fri, 05 Feb 2021 14:23:16 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 05 Feb 2021 14:23:16 +0200
changeset 101
910890292639
parent 100
43ce3672648a
child 102
9f435f66bd0c
child 103
94719518e310

added references to items()

src/main.h file | annotate | diff | comparison | revisions
--- a/src/main.h	Tue Jan 26 18:02:17 2021 +0200
+++ b/src/main.h	Fri Feb 05 14:23:16 2021 +0200
@@ -168,7 +168,7 @@
 	MapItemsIterator(Ts&&... args) : IteratorType{args...} {}
 	auto operator*() const
 	{
-		return KeyValuePair<K, V>{this->key(), this->value()};
+		return KeyValuePair<const K&, V&>{this->key(), this->value()};
 	}
 };
 

mercurial