On Fri, May 4, 2012 at 12:53 PM, Lars Viklund <zao@acc.umu.se> wrote:
On Fri, May 04, 2012 at 11:42:58AM -0700, Jeffrey Lee Hellrung, Jr. wrote:
> Sorry, drifting off-topic, and I'm not sure what XtPointer is, but based on
> your comment above, it seems it is a void pointer, and you can indeed
> static_cast a void pointer to any other (object) pointer type (as long as
> you don't drop cv qualifiers).
In my last standard reading, the conclusion I came to was that the only
cast through void that is sane is the one to the exact same type, or
possibly to/from char.
Sorry, right, I was referring strictly to a syntactic context, but the semantics is also important.
- Jeff