
30 May
2006
30 May
'06
6:48 p.m.
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