From 69c543415af9b45f3eedfd6494a79540417ec43b Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Wed, 23 Nov 2011 17:14:19 +0100 Subject: [PATCH] BACKOUT: backing out 0bcb81674edd --- Code/IO/otbStreamingImageFileWriter.txx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Code/IO/otbStreamingImageFileWriter.txx b/Code/IO/otbStreamingImageFileWriter.txx index 78d4c74cbe..ba5b180f8f 100644 --- a/Code/IO/otbStreamingImageFileWriter.txx +++ b/Code/IO/otbStreamingImageFileWriter.txx @@ -672,8 +672,11 @@ StreamingImageFileWriter<TInputImage> cacheImage->SetBufferedRegion(ioRegion); cacheImage->Allocate(); - itk::ImageRegionConstIterator<TInputImage> in(input, ioRegion); - itk::ImageRegionIterator<TInputImage> out(cacheImage, ioRegion); + typedef itk::ImageRegionConstIterator<TInputImage> ConstIteratorType; + typedef itk::ImageRegionIterator<TInputImage> IteratorType; + + ConstIteratorType in(input, ioRegion); + IteratorType out(cacheImage, ioRegion); // copy the data into a buffer to match the ioregion for (in.GoToBegin(), out.GoToBegin(); !in.IsAtEnd(); ++in, ++out) -- GitLab