Boost logo

Boost :

Subject: Re: [boost] [iterator adaptor] requires default constructor?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-06-11 18:51:36


AMDG

Neal Becker wrote:
> It seems an iterator requires a default constructor in order to be adapted
> by iterator adaptor.
>
> This is due to (iterator_adaptor.hpp):279
>
> iterator_adaptor() {}
>
> Is this really necessary?
>

I would have thought that this constructor wouldn't be
instantiated if it weren't used. I believe that the standard
requires a default constructor for Forward Iterators.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk