From 3094ed8103e18fa67a8e6b6377d16b515be7ddf6 Mon Sep 17 00:00:00 2001 From: Antoine Regimbeau <antoine.regimbeau@c-s.fr> Date: Wed, 24 Oct 2018 19:03:08 +0200 Subject: [PATCH] BUG: add visibility attribute to specialized function --- .../include/otbWrapperInputImageParameter.hxx | 4 +++- .../ApplicationEngine/src/otbWrapperInputImageParameter.cxx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.hxx b/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.hxx index 634193bee1..e79d17eacc 100644 --- a/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.hxx +++ b/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.hxx @@ -217,8 +217,10 @@ InputImageParameter::GetImage() /** declare a specialization for ImageBaseType */ template <> +OTBApplicationEngine_EXPORT ImageBaseType* -InputImageParameter::GetImage(); +InputImageParameter::GetImage<ImageBaseType>(); + template <class TInputImage, class TOutputImage> TOutputImage* diff --git a/Modules/Wrappers/ApplicationEngine/src/otbWrapperInputImageParameter.cxx b/Modules/Wrappers/ApplicationEngine/src/otbWrapperInputImageParameter.cxx index 0882bd9596..31352df0b8 100644 --- a/Modules/Wrappers/ApplicationEngine/src/otbWrapperInputImageParameter.cxx +++ b/Modules/Wrappers/ApplicationEngine/src/otbWrapperInputImageParameter.cxx @@ -70,7 +70,7 @@ InputImageParameter::GetImage() template <> ImageBaseType* -InputImageParameter::GetImage() +InputImageParameter::GetImage<ImageBaseType>() { if (m_Image.IsNull()) return this->GetImage<FloatVectorImageType>(); -- GitLab