From 2b101ae855ecf8f17bdb30f5975f5e16275126b9 Mon Sep 17 00:00:00 2001 From: Maxence Naud <maxence.naud@cea.fr> Date: Tue, 26 Nov 2024 19:15:14 +0000 Subject: [PATCH] fix: 'Aidge::InterpolationCPU::interpolate': an explicit specialization or instantiation of a function template cannot have any default arguments --- src/data/Interpolation.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/data/Interpolation.cpp b/src/data/Interpolation.cpp index 40fa1915..fbf224d8 100644 --- a/src/data/Interpolation.cpp +++ b/src/data/Interpolation.cpp @@ -331,32 +331,32 @@ T InterpolationCPU::interpolate(const std::vector<float> &coordsToInterpolate, template int8_t InterpolationCPU::interpolate<int8_t>( const std::vector<float> &originalCoords, const std::set<Point<int8_t>> &points, - const Mode interpMode = Interpolation::Mode::Linear); + const Mode interpMode); template int16_t InterpolationCPU::interpolate<int16_t>( const std::vector<float> &originalCoords, const std::set<Point<int16_t>> &points, - const Mode interpMode = Interpolation::Mode::Linear); + const Mode interpMode); template int32_t InterpolationCPU::interpolate<int32_t>( const std::vector<float> &originalCoords, const std::set<Point<int32_t>> &points, - const Mode interpMode = Interpolation::Mode::Linear); + const Mode interpMode); template int64_t InterpolationCPU::interpolate<int64_t>( const std::vector<float> &originalCoords, const std::set<Point<int64_t>> &points, - const Mode interpMode = Interpolation::Mode::Linear); + const Mode interpMode); template half_float::half InterpolationCPU::interpolate<half_float::half>( const std::vector<float> &originalCoords, const std::set<Point<half_float::half>> &points, - const Mode interpMode = Interpolation::Mode::Linear); + const Mode interpMode); template float InterpolationCPU::interpolate<float>( const std::vector<float> &originalCoords, const std::set<Point<float>> &points, - const Mode interpMode = Interpolation::Mode::Linear); + const Mode interpMode); template double InterpolationCPU::interpolate<double>( const std::vector<float> &originalCoords, const std::set<Point<double>> &points, - const Mode interpMode = Interpolation::Mode::Linear); + const Mode interpMode); //////////////////////////////////////////////////////////////////// // INTERPOLATE LINEAR (& its associated recursive function) -- GitLab