Boost logo

Boost :

From: Larry Evans (jcampbell3_at_[hidden])
Date: 2002-08-15 20:38:17


David Abrahams wrote:

>I don't see what point you're trying to make. The stuff you've quoted
>doesn't change anything. (T*)1 is either undefined or unspecified behavior
>for any T you choose; I forget which.
>
>

Instead of (U*)1, what about (U*)cu where
  char cu[sizeof(U)];
as suggested by http://lists.boost.org/MailArchives/boost/msg33483.php?

I can see maybe the 1 in (U*)1 seems suspicious, but it's only there to
allow some difference between the U* and T*. Anyway, the cu char vector
seems perfectly OK to me since it can always be converted to a U* via
placement new.


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