Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::bind and Motif
From: Lars Viklund (zao_at_[hidden])
Date: 2012-05-05 11:27:20


On Fri, May 04, 2012 at 05:04:00PM +0000, Richard wrote:
> static_cast<T*>(p) where p is void* works perfectly fine. It is
> always valid to cast a void* to any other type and that's what
> static_cast<> does -- performs the cast when it is allowed by the
> rules of the language.

Might it be C that allows arbitrary casts, but only guarantees proper
semantics if the type is the correct one?

My C-fu is weak, and I know they differ in what they allow.

-- 
Lars Viklund | zao_at_[hidden]

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