From 3d59d55c15bb89b87679ada3948acfc8379bd82c Mon Sep 17 00:00:00 2001 From: Victor Poughon <victor.poughon@cnes.fr> Date: Thu, 18 Oct 2018 11:43:39 +0200 Subject: [PATCH] BUG: fix forward declaration in wrong namespace --- .../include/otbRandomForestsMachineLearningModel.h | 6 +++--- .../include/otbRandomForestsMachineLearningModel.hxx | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Modules/Learning/Supervised/include/otbRandomForestsMachineLearningModel.h b/Modules/Learning/Supervised/include/otbRandomForestsMachineLearningModel.h index e04c7fd19e..3de61ce3aa 100644 --- a/Modules/Learning/Supervised/include/otbRandomForestsMachineLearningModel.h +++ b/Modules/Learning/Supervised/include/otbRandomForestsMachineLearningModel.h @@ -27,12 +27,12 @@ #include "itkFixedArray.h" #include "otbMachineLearningModel.h" #include "itkVariableSizeMatrix.h" -#include "otbCvRTreesWrapper.h" - -class CvRTreesWrapper; namespace otb { + +class CvRTreesWrapper; + template <class TInputValue, class TTargetValue> class ITK_EXPORT RandomForestsMachineLearningModel : public MachineLearningModel <TInputValue, TTargetValue> diff --git a/Modules/Learning/Supervised/include/otbRandomForestsMachineLearningModel.hxx b/Modules/Learning/Supervised/include/otbRandomForestsMachineLearningModel.hxx index 10508ead57..a5e70f9130 100644 --- a/Modules/Learning/Supervised/include/otbRandomForestsMachineLearningModel.hxx +++ b/Modules/Learning/Supervised/include/otbRandomForestsMachineLearningModel.hxx @@ -25,6 +25,7 @@ #include "itkMacro.h" #include "otbRandomForestsMachineLearningModel.h" #include "otbOpenCVUtils.h" +#include "otbCvRTreesWrapper.h" namespace otb { -- GitLab