[Insight-developers] RE: Sun Compiler changes and VC7

Lorensen, William E (Research) lorensen at crd.ge.com
Thu Nov 11 10:04:46 EST 2004


I have made the changes. I'll check them in.

Bill

-----Original Message-----
From: William A. Hoffman [mailto:billlist at nycap.rr.com]
Sent: Thursday, November 11, 2004 9:33 AM
To: Lorensen, William E (Research); Miller, James V (Research);
insight-developers at itk.org
Subject: Re: Sun Compiler changes and VC7


Well, I tried VC7.1, Borland, and gcc 3.3 before the check in. 
Self:: seems to work on the Sun.   I can make the changes, unless you
already have?  Let me know.

-Bill


At 07:31 AM 11/11/2004, Lorensen, William E (Research) wrote:
>Bill,
>
>VC7 is complaining about the new declarations. It wants the class name to
>include the template parameters. Since we define Self in each class, the
>following compiles fine on VC7.
>
>template <class TInputImage,class TOutputImage,class TDeformationField>
>void
>WarpImageFilter<TInputImage,TOutputImage,TDeformationField>
>::SetOutputOrigin(
>  const double origin[Self::ImageDimension] )
>{
>  PointType p(origin);
>  this->SetOutputOrigin(p);
>}
>
>I think this is better than
>
>template <class TInputImage,class TOutputImage,class TDeformationField>
>void
>WarpImageFilter<TInputImage,TOutputImage,TDeformationField>
>::SetOutputOrigin(
>  const double
>origin[WarpImageFilter<TInputImage,TOutputImageSelf,TDeformationField>::Ima
g
>eDimension] )
>{
>  PointType p(origin);
>  this->SetOutputOrigin(p);
>}
>
>Can you see if this works on the Sun compiler?
>
>
>Bill 


More information about the Insight-developers mailing list