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.

Regards,

-- 
Felipe Magno de Almeida

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