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 #26392 is a reply to message #26390] Thu, 29 April 2010 19:45 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Allan,

You can always use operator[](). It looks a bit ugly, but it should work fine:
	for(int i = 0; i < ((ntlMap*)ptrm)->GetCount(); i++)
		((ntlArray*)ptra)->operator[](i) = ((ntlMap*)ptrm)->operator[](i);
Maybe there is a nicer way to do this, but in U++ there is so little cases where pointers are needed that I never really bothered to investigate any other possible solutions Cool

Best regards,
Honza
 
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: Wed Jun 12 04:57:10 CEST 2024

Total time taken to generate the page: 0.02143 seconds