Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2002-12-04 14:02:18


"Eric Woodruff" <Eric.Woodruff_at_[hidden]> wrote in message
news:asli92$oqn$1_at_main.gmane.org...
> [...]
> > > > holder<Foo> h;
> > > > new (h.storage) Foo;
> [...]
> So the type really is of Foo,
> [...]

No, the type really is char[sizeof(T)] converted to char* const. Since the
pointer never was Foo*, I don't believe reinterpret_cast<> is obliged to
give you a valid Foo*.

Dave


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