[Insight-developers] itkVector initialization problem

Lorensen, William E (CRD) lorensen@crd.ge.com
Thu, 7 Feb 2002 15:52:51 -0500


Yes, we have seen this before. It's best not to use the comma separated form. We should discuss this
next week on your home turf...

Bill


-----Original Message-----
From: Julien Jomier [mailto:jjomier@cs.unc.edu]
Sent: Thursday, February 07, 2002 2:57 PM
To: Insight Developers
Subject: [Insight-developers] itkVector initialization problem


Hello,

I found a "bug" in itkVector when trying to initialize an itk vector 
with the first element equal to zero.

itk::Vector<double,3> myVector;
myVector = 0,1,2;

compiler returns the error :  'operator =' is ambiguous

Luis found that the problem is in  itkVector.h   line 186
There is a set of    operator=()     methods.
The one in line 104 expects an array (a C traditional array).
When this method is commented out, the compilation error
disappears.

It looks like we will have to chose between one or the other....
Remove one of them....or rename one of them and not
use it as an operator=()...

Any suggestions ?

Thanks

Julien




_______________________________________________
Insight-developers mailing list
Insight-developers@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-developers