Talk About Network

Google





Programming > C - C++ Learning > void*
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 4086 of 4400
Post > Topic >>

void*

by Tim Frink <plfriko@[EMAIL PROTECTED] > Mar 26, 2008 at 08:27 PM

Hi,

is the use of void* in C++ dangerous? 
If so what are the reasons? 

The reason I'm asking is that I want to store some 
pointers to objects of class A in a list which itself is 
located in class B. However, I want to avoid dependencies 
between both cl***** so my idea was to have a 
	
	std::list< void * > 

in order to avoid including headers of class A in class B. 
Or do you see a more elegant solution for that?

Regards,
Tim
 




 10 Posts in Topic:
void*
Tim Frink <plfriko@[EM  2008-03-26 20:27:21 
Re: void*
"Jim Langston"   2008-03-26 13:29:51 
Re: void*
Tim Frink <plfriko@[EM  2008-03-26 20:50:53 
Re: void*
Francis Glassborow <fr  2008-03-26 23:43:35 
Re: void*
Ulrich Eckhardt <dooms  2008-03-27 18:23:32 
Re: void*
Tim Frink <plfriko@[EM  2008-03-27 21:18:55 
Re: void*
Ulrich Eckhardt <dooms  2008-03-28 07:02:03 
Re: void*
Tim Frink <plfriko@[EM  2008-03-27 21:23:23 
Re: void*
Ian Collins <ian-news@  2008-03-28 10:44:20 
Re: void*
"Jim Langston"   2008-03-28 03:07:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 10:49:48 PST 2009.