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

William A. Hoffman billlist at nycap.rr.com
Thu Nov 11 09:33:14 EST 2004


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>::Imag
>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