$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [algorithm] to_lower_copy / to_upper_copy with no output param assumes sequence to be same as input
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-06-23 03:20:51
On Thu, Jun 23, 2011 at 1:13 AM, Jeffrey Lee Hellrung, Jr.
<jeffrey.hellrung_at_[hidden]> 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