
11 May
2010
11 May
'10
11:17 a.m.
Neil Groves skrev:
On Mon, May 10, 2010 at 2:51 PM, Thorsten Ottosen
mailto:nesotto@cs.aau.dk> wrote: Thorsten Ottosen skrev:
Also, I don't see any reason why a const T& overload of boost::fill cannot exists as long as the const-iterator is actually a mutable iterator (like with iterator_range<MutableRange>).
Also note that in a world with perfect forwarding, we shuold probably specify fill() like
template< class Rng > void fill( Rng&& rng, range_value<Rng>::type x );
Wouldn't this stop fill from working on ranges of abstract types?
I don't know. Usually when deal with abstract types, I don't use fill() for anything because those types are not copyable or assignable. -Thorsten