Boost Users :
Subject: Re: [Boost-users] A forward iterator need not be default-constructible
From: Brian Allison (brian.w.allison_at_[hidden])
Date: 2011-09-30 11:35:42
On Fri, Sep 30, 2011 at 11:06 AM, Andrew Sutton <asutton.list_at_[hidden]>wrote:
> > You can't equally-compare a singular iterator.
> Why not? Isn't an object equal to itself?
There's nothing in the standard to say that an uninitialized variable must
be equal to itself.
Especially since the standard states that the only defined operation on a
singular iterator is ... assignment.
If a clever compiler computed the lifespan of all memory usage, is there
anything in the standard which would keep it from using the memory of
Singular Iterators as temporary storage? Or randomly bit-twiddling the bits
in them while they are Singular?
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