Files
iterator/test
Andrey Semashev 7c9b4296a1 Fixed accessing members of the dereferenced value after iterator post-increment.
The recent commit 5777e9944b broke code such as
(*it++).foo(), where the result of dereferencing would be convertible to
the value type but did not provide the members of the value type. To mitigate
this, return a reference to the value instead of a proxy object. This will only
work for non-writable iterators (and it didn't work for writable iterators
before either) because in that case a proxy is needed to be able to intercept
operator=.

Also fix a similar issue with (it++)->foo() by adding operator-> overloads
to the post-increment result proxies.

Added tests for the fixes.
2022-11-18 00:46:21 +03:00
..
2018-09-22 20:44:29 +09:00
2020-03-04 01:06:45 +03:00
2020-03-04 01:06:45 +03:00
2004-08-19 15:11:49 +00:00
2004-08-10 14:41:52 +00:00
2020-03-04 01:06:45 +03:00
2004-10-20 13:20:19 +00:00
2020-03-04 01:06:45 +03:00
2020-03-04 01:06:45 +03:00
2005-06-24 15:37:23 +00:00