[Insight-developers] MRCImageIO & Visual Studio 6.0

Bill Lorensen bill.lorensen at gmail.com
Mon Jun 14 14:08:26 EDT 2010


I think we have done a) in the past.

On Mon, Jun 14, 2010 at 1:11 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
> Hi Brad,
>
>
> Visual Studio 6.0 seems to be having trouble with
>
> the template instantiations from itkMRCImageIO:
>
> http://www.cdash.org/CDash/viewBuildError.php?buildid=635480
>
>
>
> :\Dashboards\My Tests\InsightContinuous\Code\Review\itkMRCImageIO.cxx(516) :
> error C2893: Failed to specialize function template 'void __thiscall
> itk::Local::MRCImageIO::UpdateHeaderWithMinMaxMean(const TPixelType *)'
>
>         With the following template arguments:
>         'unsigned char'
>
>
>
> I believe that VS6 can't resolve templated functions
> just based on the type of the function argument.
>
>
>
> Options to consider are:
>
>
> A)  instantiating it as:
>
>         f<T>( T arg )
>
> or
>
>
> B)  Making that function to be a
>     templated method member of a class.
>
>
> Do you have any preferences between these two options ?
>
> (or maybe other options...?)
>
>
>
>     Thanks
>
>
>        Luis
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
>


More information about the Insight-developers mailing list