
13 Jun
2012
13 Jun
'12
2:12 p.m.
Mathias Gaunard wrote:
On 12/06/2012 22:54, Peter Dimov wrote:
Mathias Gaunard wrote:
foo(T const& t_) : t(t_) {}
That, however, does a copy for rvalues, too.
Yes, the solution to optimize rvalues is to addd an rvalue reference overload, but that's beside the point.
Or 2^N overloads, if there's more than one argument to consume.