From d5b2026db134356b63363c975bd45e5bf316d465 Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Tue, 27 Mar 2018 18:27:07 +0200
Subject: [PATCH] COMP: fix compilation of MPIVrtWriter

---
 Modules/MPI/MPIVrtWriter/include/otbMPIVrtWriter.h   | 5 +++++
 Modules/MPI/MPIVrtWriter/include/otbMPIVrtWriter.txx | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Modules/MPI/MPIVrtWriter/include/otbMPIVrtWriter.h b/Modules/MPI/MPIVrtWriter/include/otbMPIVrtWriter.h
index 3b21985b16..1800dc62ae 100644
--- a/Modules/MPI/MPIVrtWriter/include/otbMPIVrtWriter.h
+++ b/Modules/MPI/MPIVrtWriter/include/otbMPIVrtWriter.h
@@ -140,4 +140,9 @@ template <typename TImage> void WriteMPI(TImage *img, const std::string &output,
 }
 
 } // End namespace otb
+
+#ifndef OTB_MANUAL_INSTANTIATION
+#include "otbMPIVrtWriter.txx"
+#endif
+
 #endif //__otbMPIVrtWriter_h
diff --git a/Modules/MPI/MPIVrtWriter/include/otbMPIVrtWriter.txx b/Modules/MPI/MPIVrtWriter/include/otbMPIVrtWriter.txx
index db11192919..ebece9e026 100644
--- a/Modules/MPI/MPIVrtWriter/include/otbMPIVrtWriter.txx
+++ b/Modules/MPI/MPIVrtWriter/include/otbMPIVrtWriter.txx
@@ -48,7 +48,7 @@ MPIVrtWriter<TImage>::SetInput(const InputImageType *input)
 }
 
 template <typename TImage>
-const InputImageType*
+const TImage*
 MPIVrtWriter<TImage>::GetInput()
 {
   if (this->GetNumberOfInputs() < 1)
-- 
GitLab