4 ms·
> rvalues do not and therefore cannot be addressed (with & or *) Correction: prvalues cannot be addressed. There are also xvalues, which are both rvalues and
by quietbritishjim 8y ago
> rvalues do not and therefore cannot be addressed (with & or *)
Correction: prvalues cannot be addressed. There are also xvalues, which are both rvalues and lvalues i.e. they can be addressed but can also be moved from. In practice I think these are always lvalues that have been cast to an rvalue reference, usually using std::move().
- mannykannot 8y agoThis thread is recapitulating the article.