Thinking about (x|r|l|pr|gl)values, the following question came to my mind:
Consider the following two variable declarations:
X x = ...;
and
X&& x = ...;
Can anybody think of code not using decltype
in which this makes a difference? In both cases, (x)
will by an lvalue of type X
, won't it?
Aucun commentaire:
Enregistrer un commentaire