From e573c3067dc8ddc53e2edcebf0657fa8f0c48461 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Mon, 27 Jun 2011 10:02:22 +0200 Subject: [PATCH] No need for typename outside template declarations (compiling error on msvc++) --- tools/clitkMakeSphereImage.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/clitkMakeSphereImage.cxx b/tools/clitkMakeSphereImage.cxx index f018b95..7f29dfe 100644 --- a/tools/clitkMakeSphereImage.cxx +++ b/tools/clitkMakeSphereImage.cxx @@ -8,10 +8,10 @@ int main(int argc, char** argv) { const unsigned int dim = 3; typedef char PixelType; typedef itk::Image ImageType; - typedef typename ImageType::IndexType IndexType; - typedef typename ImageType::PointType PointType; - typedef typename ImageType::SizeType SizeType; - typedef typename ImageType::RegionType RegionType; + typedef ImageType::IndexType IndexType; + typedef ImageType::PointType PointType; + typedef ImageType::SizeType SizeType; + typedef ImageType::RegionType RegionType; IndexType index; index.Fill(0); @@ -30,12 +30,12 @@ int main(int argc, char** argv) { region.SetIndex(index); region.SetSize(size); - typename ImageType::Pointer image = ImageType::New(); + ImageType::Pointer image = ImageType::New(); image->SetRegions(region); image->Allocate(); typedef itk::SphereSpatialFunction ShpereFunctionType; - typename ShpereFunctionType::Pointer sphere = ShpereFunctionType::New(); + ShpereFunctionType::Pointer sphere = ShpereFunctionType::New(); double radius = atof(argv[8])/2; sphere->SetCenter(origin); @@ -56,7 +56,7 @@ int main(int argc, char** argv) { } typedef itk::ImageFileWriter ImageWriterType; - typename ImageWriterType::Pointer writer = ImageWriterType::New(); + ImageWriterType::Pointer writer = ImageWriterType::New(); writer->SetInput(image); writer->SetFileName(argv[1]); writer->Update(); -- 2.47.1