$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2006-05-30 14:48:39
Neal Becker wrote:
> Thorsten Ottosen wrote:
>
>
>>Neal Becker wrote:
>>> It's
>>>quite clear (to me) that this is an important use of the range concept.
>>
>>I think the algorothm is wrong in this case. I would go for
>>
>>template< class SinglePassRange, class WritableForwardRange >
>>void overwrite( const SinglePassRange&, WriteForwardRange& );
>>
>>template< class SinglePassRange, class WritableForwardRange >
>>void overwrite( const SinglePassRange&, const WriteForwardRange& );
>>
>
>
> Did you mean something like this?
No. I meant that copy() should not take a "out-put range". You need a
different algorithm for what you're doing. In particular, overwrite()
can check bounds.
-Thorsten