
23 Jun
2011
23 Jun
'11
7:20 a.m.
On Thu, Jun 23, 2011 at 1:13 AM, Jeffrey Lee Hellrung, Jr. <jeffrey.hellrung@gmail.com> wrote:
OutputSequenceT Output( ::boost::begin( Input ), ::boost::end( Input ) );
Doesn't this also do an unnecessary copy?
Olaf
Maybe one would hope (N)RVO would kick in. But that would depend on the rest of the definition...
This isn't about the return value. But I agree, a variant of these algorithms (and others) that support different types for input and output would be nice. Olaf