Swap GeDynamicArrays

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 13/08/2009 at 11:10, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R10-R11 
Platform:   Windows  ;   Mac OSX  ; 
Language(s) :     C++  ;

---------
I'm doing an alphanumerical sort of a list of class instances. The class contains a GeDynamicArray member which needs to be swapped between instances during the sort. How can I go about this? Is it as simple as:

GeDynamicArray<Item*> ti = a->items;
a->items = b->items;
b->items = ti;

Thanks!

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 14/08/2009 at 02:55, xxxxxxxx wrote:

Yep, that should work. the according assignment operator is available

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 14/08/2009 at 05:04, xxxxxxxx wrote:

Thanks, Samir! :)