Boost logo

Boost Users :

Subject: Re: [Boost-users] transform_iterator requirement on the Iterator?
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2009-09-10 11:16:54


2009/9/10 Hicham Mouline <hicham_at_[hidden]>:
>
> My iterators are constructed to make them point inside a given container,
> for that they store a reference to the container.
> Therefore I cannot provide a default constructor, or can I?
>
> Do I need to change the implementation of the iterator to allow default
> construction
> so that I can use lower_bound with it?
>

The default constructor is expected to give a mostly-useless singular iterator.

Changing the reference to a pointer should solve everything.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net