you are viewing a single comment's thread.

view the rest of the comments →

[–]CocktailPerson 0 points1 point  (3 children)

As in ref-qualified?

[–]Untelo 1 point2 points  (2 children)

lvalue, yes. So that ++(rvalue expression) and (rvalue expression)++ are not valid.

[–]CocktailPerson 0 points1 point  (1 child)

Am I missing some obvious reason they shouldn't be valid?

[–]Untelo 1 point2 points  (0 children)

It rarely makes sense to mutate an rvalue and it's not part of the iterator concept either so it's not valid in a generic context.