]> git.tdb.fi Git - libs/math.git/blobdiff - source/interpolate/spline.h
Fix a missing return in assignment operator
[libs/math.git] / source / interpolate / spline.h
index c801188e695cfb4f1c6a51c75368332ad5af53e9..d76197930e5747e7a93e05137309ffeccf2ae5d1 100644 (file)
@@ -2,7 +2,6 @@
 #define MSP_INTERPOLATE_SPLINE_H_
 
 #include <algorithm>
-#include <vector>
 #include "knot.h"
 #include "polynomial.h"
 
@@ -135,6 +134,8 @@ inline Spline<T, D, N> &Spline<T, D, N>::operator=(const Spline &s)
                capacity = 0;
                segments = 0;
        }
+
+       return *this;
 }
 
 template<typename T, unsigned D, unsigned N>