From: Simon Rit Date: Tue, 21 Feb 2012 13:09:32 +0000 (+0100) Subject: Removed typename outside template which prevents MSVC compilation X-Git-Tag: v1.3.0~92^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5398fcd33c0271a2adef4c2cc299cd0597818ffb;p=clitk.git Removed typename outside template which prevents MSVC compilation --- diff --git a/tools/clitkImageArithmGenericFilter.cxx b/tools/clitkImageArithmGenericFilter.cxx index 964607e..71da90e 100644 --- a/tools/clitkImageArithmGenericFilter.cxx +++ b/tools/clitkImageArithmGenericFilter.cxx @@ -32,14 +32,14 @@ namespace clitk { typedef itk::Image< itk::Vector, 3u > ImageType; // Read input1 - typename ImageType::Pointer input1 = this->GetInput(0); + ImageType::Pointer input1 = this->GetInput(0); // Set input image iterator typedef itk::ImageRegionIterator IteratorType; IteratorType it(input1, input1->GetLargestPossibleRegion()); // typedef input2 - typename ImageType::Pointer input2 = NULL; + ImageType::Pointer input2 = NULL; IteratorType it2; /* @@ -106,7 +106,7 @@ namespace clitk { } else*/ { // Create output image typedef ImageType OutputImageType; - typename OutputImageType::Pointer output = OutputImageType::New(); + OutputImageType::Pointer output = OutputImageType::New(); output->SetRegions(input1->GetLargestPossibleRegion()); output->SetOrigin(input1->GetOrigin()); output->SetSpacing(input1->GetSpacing()); @@ -134,7 +134,7 @@ namespace clitk { ito.GoToBegin(); it.GoToBegin(); - typedef typename Iter2::PixelType PixelType; + typedef Iter2::PixelType PixelType; PixelType scalar_vector; scalar_vector.Fill(mScalar); @@ -265,7 +265,7 @@ namespace clitk { it1.GoToBegin(); it2.GoToBegin(); ito.GoToBegin(); - typedef typename Iter3::PixelType PixelType; + typedef Iter3::PixelType PixelType; switch (mTypeOfOperation) { case 0: // Addition