Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Void pointer to NTL Array and VectorMap
Re: Void pointer to NTL Array and VectorMap [message #26409 is a reply to message #26401] Fri, 30 April 2010 10:46 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
manfhe wrote on Thu, 29 April 2010 18:15

One more doubt about void* type. Rolling Eyes

To destroy it is better: delete (ntlMap*)ptrm (This calls the destructor of the class?)



Yes. Once you cast it, compiler thinks it is pointer to ntlMap.

Once again, I hope that you are doing something really special. You should not use void pointers in 'normal' code. Actually, you should avoid pointers whenever possible.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: image drawing
Next Topic: [SOLVED]destroying self from array
Goto Forum:
  


Current Time: Tue Jul 08 01:39:07 CEST 2025

Total time taken to generate the page: 0.03830 seconds