diff --git a/Code/FeatureExtraction/otbScalarImageToTexturesFilter.h b/Code/FeatureExtraction/otbScalarImageToTexturesFilter.h
index 2fcf52b22b628db86caaee58619eb761d17d8fc0..cf543eafc6e4519dda1110d180e68cb2401ebd0a 100644
--- a/Code/FeatureExtraction/otbScalarImageToTexturesFilter.h
+++ b/Code/FeatureExtraction/otbScalarImageToTexturesFilter.h
@@ -226,7 +226,7 @@ private:
   InputPixelType m_InputImageMaximum;
 
   //TODO: should we use constexpr? only c++11 and problem for msvc
-  const double GetPixelValueTolerance() const {return 0.0001; }
+  inline double GetPixelValueTolerance() const {return 0.0001; }
 
 };
 } // End namespace otb