
7 Apr
2008
7 Apr
'08
6:58 p.m.
Anthony Williams:
However, in this case I'm surely missing something else. Andrei's talk on Friday went on for a few slides about why the function above is insufficient, how you needed three overloads (A&&, A& and A const&), ...
This is correct if A is not a template parameter.
... and with a sample implementation from Howard Hinnant that used a traits class to deduce the correct return value with only one overload.
I've no explanation for that though. :-)