Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ???
- From: Paul Davis <pbd Op Net>
- To: Chris Seberino <seberino spawar navy mil>
- Cc: gtk-list gnome org
- Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ???
- Date: Wed, 06 Feb 2002 14:22:48 -0500
>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]