Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ???



>I need to sometimes initialize an object to NULL and get this
>message.  How avoid???

this is getting too close to generic programming questions for this
list. if you don't understand how to fix this yourself, i worry about
future progress on your software.

       SomeObject *someObject = (SomeObject *) 0;

you should never use "NULL" in a C++ program. look it up with google
to understand why.

--p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]