diff --git a/include/Geometry/Spline.inl b/include/Geometry/Spline.inl index 0f25291..00383e8 100644 --- a/include/Geometry/Spline.inl +++ b/include/Geometry/Spline.inl @@ -181,7 +181,7 @@ namespace detail template struct evalSplineHelper { - std::tuple operator()( + std::tuple& operator()( std::vector> const& controlPoints, std::vector const& nodes, int degree, @@ -204,7 +204,7 @@ struct evalSplineHelper template struct evalSplineHelper<0,J,Types...> { - std::tuple operator()( + std::tuple& operator()( std::vector> const& controlPoints, std::vector const& nodes, int degree, @@ -232,7 +232,7 @@ template struct evalDerivativeSplineHelper { - std::tuple operator()(std::vector> const& controlPoints , std::vector const& nodes, int degree, float f, std::tuple& tuple) + std::tuple& operator()(std::vector> const& controlPoints , std::vector const& nodes, int degree, float f, std::tuple& tuple) { std::get(tuple) = 0; @@ -258,7 +258,7 @@ struct evalDerivativeSplineHelper template struct evalDerivativeSplineHelper<0,J,Types...> { - std::tuple operator()(std::vector> const& controlPoints , std::vector const& nodes, int degree, float f, std::tuple& tuple) + std::tuple& operator()(std::vector> const& controlPoints , std::vector const& nodes, int degree, float f, std::tuple& tuple) { // Nothing to do here return tuple;