
4 May
2012
4 May
'12
7:53 p.m.
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. -- Lars Viklund | zao@acc.umu.se