Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::bind and Motif
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2012-05-04 15:58:14


On Fri, May 4, 2012 at 12:53 PM, Lars Viklund <zao_at_[hidden]> 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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net