Steven Watanabe | 31 Aug 02:39
Picon

Re: lifetime of ranges vs. iterators

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


Gmane