$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Gabriel Dos Reis (gdr_at_[hidden])
Date: 2002-12-05 05:35:58
Hi,
Anthony Williams <anthony.williamsNOSPAM_at_[hidden]> writes:
[...]
| 3.10p15:
|   "If a program attempts to access the stored value of an object through an
|   lvalue of other than one of the following types the behavior is undefined:
| 
|   - the dynamic type of the object,
| 
|   ...
| 
|   - a char or unsigned char type."
| 
| So given a Foo object foo, static_cast<char*>(static_cast<void*>(&foo)) is
| legal, and can be used to access the object representation of the object.
There is no question that the above cast is legal.  I thin the issue
is elsewhere.  The key question is whether that may be different from
   reinterpret_cast<void*>(&foo);
-- Gaby