diff --git a/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx b/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx index 54b8d889d1eb1747c1edc547a2d404b1f1157705..fde557da101a9b1b493027711e6efc7ae14a9578 100644 --- a/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx +++ b/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx @@ -259,7 +259,7 @@ VectorPrediction<RegressionMode> itkExceptionMacro(<< "incorrect field type: " << field.GetType() << "."); } if (computeConfidenceMap) - dstFeature[confFieldName].SetValue<double>(quality->GetMeasurementVector(count)[0]); + dstFeature[confFieldName].template SetValue<double>(quality->GetMeasurementVector(count)[0]); if (updateMode) { outLayer.SetFeature(dstFeature);