Reputation: 10539
I'm wondering why rvalue expressions are subdivided in two groups (xvalues and prvalues).
Saying differently is there a lot of place where the treatment on rvalues is different according to the fact the expression is either an xvalue or a prvalue? (I think for instance at copy-elision are feature like that). Too much to be enumerated here maybe?
Upvotes: 0
Views: 80
Reputation: 47448
I am somewhat unclear on what is asked, but some of the differences between xvalues and prvalues are:
non-class xvalue can be cv-qualified, prvalue can't be
class xvalue can be polymorphic, class prvalue is always its most derived type
Upvotes: 3