Title
N3723 Extend operator-> to support rvalues
Status
open
Section
[over.ref]
Submitter
Pascal Costanza

Created on 2013-08-23.00:00:00 last changed 136 months ago

Messages

Date: 2013-08-23.00:00:00

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3723.html

Discussed in Chicago 2013: Return object that overloads -> to point to subobject. Wrapper that points into itself. Boost "iterator facade" that uses curiously recursive template pattern that does this. It's a pain. What other motivating use cases demonstrate this is a general problem? Has to be a relation to operator. that we've tried to invent a few times. Extra integer looks odd, more so than hack for operator++. We're not yet convinced problem is general enough to require a language change. Not opposed to change, but feels like it's tail end of bigger problem. Didn't quite like the syntax.

History
Date User Action Args
2013-08-23 00:00:00admincreate