Boost logo

Boost :

Subject: Re: [boost] [spirit] Support for one-pass iterators?
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2009-10-19 12:58:33

Hartmut Kaiser wrote:
> I looked into the Standard and it says there [3.8.6]:
> <quote>
> Similarly, before the lifetime of an object has started but after the
> storage
> which the object will occupy has been allocated or, after the lifetime of an
> object has ended and before the storage which the object occupied is reused
> or released, any lvalue which refers to the original object may be used but
> only in limited ways. Such an lvalue refers to allocated storage (,
> and using the properties of the lvalue which do not depend on its value is
> well-defined.
> </quote>

Quoting a bit further:

... if the original object will be or was of a non-POD class type, the
program has undefined behavior if:

- the lvalue is used to access a non-static data member or call a
non-static member function of the object,

Boost list run by bdawes at, gregod at, cpdaniel at, john at