U++ framework
Do not panic. Ask here before giving up.

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: 1796
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: Fri Jul 03 14:38:44 GMT+2 2026

Total time taken to generate the page: 0.00601 seconds