
29 Apr
2010
29 Apr
'10
8:46 p.m.
Ion GaztaƱaga wrote:
On 29/04/2010 22:01, Jeffrey Hellrung wrote:
To reiterate: is it possible to just use a lvalue reference for the member variable?
I don't think so, because we would lose the rvalueness of the catched parameter and we could not longer distinguish between passed lvalue or lvalu references to forward them correctly.
I thought the rvalue- or lvalue-ness was encoded in the type of the template parameter Arg? I.e., Arg = T& or Arg = T const& is an lvalue reference; Arg = T (no reference qualifiers) or Arg = T&& is an rvalue reference. - Jeff