[interfacekit] Re: OBOS Support kit doesn't compile: solution

On 2002-09-20 at 06:22:09 [+0200], you wrote:

> The "buffer" local is "const void *" so the static_cast is trying to go 
> from a "const void *" to a "char *".  However, strdup() takes a "const 
> char *" so the following should also work:
> 
> fPropInfo[pi].name=strdup(static_cast<const char *>(buffer)+
> flatData.Position());

Yeah, I can check in the change, if no one complains.

> I can't explain why myself nor Ingo cannot reproduce this.  There must 
> be some difference between the compilers being used out there which is 
> a bit scary.  However, I agree that this code is a defect.

What compiler are you using?
Mine is the one on GeekGadgets.


-- 
Qui e' Jack Burton, del Pork-Chop Express,
che parla a chiunque sia in ascolto...

http://digilander.iol.it/burton666/index.html

Other related posts: