Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-04-07 14:58:04


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. :-)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk