From fe9483bda8ba9b94af658204c34cfa5b2fe5b6b3 Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Mon, 29 Nov 2010 00:23:53 +0100 Subject: [PATCH] ENH: defaults to static_cast to support all automatic type conversions --- Code/Common/otbVariableLengthVectorConverter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Common/otbVariableLengthVectorConverter.h b/Code/Common/otbVariableLengthVectorConverter.h index 61dc8f8246..f7eaae0d44 100644 --- a/Code/Common/otbVariableLengthVectorConverter.h +++ b/Code/Common/otbVariableLengthVectorConverter.h @@ -62,7 +62,7 @@ public: OutputType Convert (InputType input) { - itkGenericExceptionMacro( << "Type Convertion Not Implemented." << std::endl ); + return static_cast<OutputType>(input); } protected: -- GitLab