Boost logo

Boost :

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


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