RE: CRefArray doesn't respect C++ copy semantics

2012-05-01 Thread Marc-Andre Belzile
: Alok Gandhimailto:alok.gan...@modusfx.com Sent: Tuesday, May 01, 2012 1:31 AM To: softimage@listproc.autodesk.commailto:softimage@listproc.autodesk.com Subject: Re: CRefArray doesn't respect C++ copy semantics The docs say that: CRefArrayhttp://download.autodesk.com/global/docs/softimage2012

Re: CRefArray doesn't respect C++ copy semantics

2012-04-30 Thread jo benayoun
Hey Nicolas, never ran into that, but should definitively logged as bug ! :( jo 2012/4/30 Nicolas Burtnyk nico...@redshift3d.com I ran into this today while trying to figure out why my code was broken. Thought I'd pass this along and hopefully save someone some wasted time in the future...

Re: CRefArray doesn't respect C++ copy semantics

2012-04-30 Thread Alok Gandhi
A quick test gives me following result: # VERBOSE : cRefArrayTest_Execute called # VERBOSE : Count a1: 3 # VERBOSE : Count a2: 3 On 4/30/2012 6:24 PM, Nicolas Burtnyk wrote: I ran into this today while trying to figure out why my code was

Re: CRefArray doesn't respect C++ copy semantics

2012-04-30 Thread Nicolas Burtnyk
Yeah, exactly as I unfortunately discovered :( On Mon, Apr 30, 2012 at 3:49 PM, Alok Gandhi alok.gan...@modusfx.comwrote: A quick test gives me following result: # VERBOSE : cRefArrayTest_Execute called # VERBOSE : Count a1: 3 # VERBOSE : Count a2: 3 On 4/30/2012 6:24 PM, Nicolas

Re: CRefArray doesn't respect C++ copy semantics

2012-04-30 Thread piotrek marczak
Maybe a2.Set(a1) or a2+=a1 would work? newbie question isn’t “const” keyword a hint that we won’t change input array? From: Alok Gandhi Sent: Tuesday, May 01, 2012 1:31 AM To: softimage@listproc.autodesk.com Subject: Re: CRefArray doesn't respect C++ copy semantics The docs say

Re: CRefArray doesn't respect C++ copy semantics

2012-04-30 Thread jo benayoun
“const” keyword a hint that we won’t change input array? *From:* Alok Gandhi alok.gan...@modusfx.com *Sent:* Tuesday, May 01, 2012 1:31 AM *To:* softimage@listproc.autodesk.com *Subject:* Re: CRefArray doesn't respect C++ copy semantics The docs say that: CRefArrayhttp

Re: CRefArray doesn't respect C++ copy semantics

2012-04-30 Thread Nicolas Burtnyk
@listproc.autodesk.com *Subject:* Re: CRefArray doesn't respect C++ copy semantics The docs say that: CRefArrayhttp://download.autodesk.com/global/docs/softimage2012/en_us/sdkguide/si_cpp/classXSI_1_1CRefArray.html operator= ( const CRefArrayhttp://download.autodesk.com/global/docs/softimage2012

Re: CRefArray doesn't respect C++ copy semantics

2012-04-30 Thread Nicolas Burtnyk
“const” keyword a hint that we won’t change input array? *From:* Alok Gandhi alok.gan...@modusfx.com *Sent:* Tuesday, May 01, 2012 1:31 AM *To:* softimage@listproc.autodesk.com *Subject:* Re: CRefArray doesn't respect C++ copy semantics The docs say that: CRefArrayhttp

Re: CRefArray doesn't respect C++ copy semantics

2012-04-30 Thread Alok Gandhi
nge input array? From: Alok Gandhi Sent: Tuesday, May 01, 2012 1:

Re: CRefArray doesn't respect C++ copy semantics

2012-04-30 Thread Nicolas Burtnyk
, 2012 1:31 AM *To:* softimage@listproc.autodesk.com *Subject:* Re: CRefArray doesn't respect C++ copy semantics The docs say that: CRefArrayhttp://download.autodesk.com/global/docs/softimage2012/en_us/sdkguide/si_cpp/classXSI_1_1CRefArray.html operator= ( const CRefArrayhttp