31 Aug 02:39
Re: lifetime of ranges vs. iterators
Steven Watanabe <watanabesj <at> gmail.com>
2008-08-31 00:39:32 GMT
2008-08-31 00:39:32 GMT
AMDG
David Abrahams wrote:
>> friend Iterator get_end(const filter_iterator& self) {
>> return
>> filter_iterator(
>> get_end(self.iter), get_end(self.iter), self.f);
>> }
>>
>> friend Iterator set_end(
>> const filter_iterator& self, const filter_iterator& other);
>>
>
> Hi Steven,
>
> Say for example Iterator is strided_iterator<int>. Then the return type
> of set_end above is strided_iterator<int>, right? So how will its body
> typecheck? Seems like this needs a little more thought.
>
Oops. I intended the return type to be filter_iterator.
In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
RSS Feed