Boost logo

Boost Users :

Subject: Re: [Boost-users] A forward iterator need not be default-constructible
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2011-09-30 11:23:14

On Fri, Sep 30, 2011 at 12:06 PM, Andrew Sutton <asutton.list_at_[hidden]> wrote:
>> You can't equally-compare a singular iterator.
> Why not? Isn't an object equal to itself?

Because a singular iterator can be a uninitialized variable and you can't
equally-compare a uninitialized variable, nor copy it. All you can do is
assign and destroy it.


Felipe Magno de Almeida

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at