From 5398fcd33c0271a2adef4c2cc299cd0597818ffb Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Tue, 21 Feb 2012 14:09:32 +0100 Subject: [PATCH 1/1] Removed typename outside template which prevents MSVC compilation --- tools/clitkImageArithmGenericFilter.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.46.1