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 |
|
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
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Fri Nov 01 01:38:02 CET 2024
Total time taken to generate the page: 0.00620 seconds
|