aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/splines.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-02-28 20:22:26 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-02-28 20:22:26 +0100
commit1bb1945078e776fd1ff2b88ea1ff25ebad723427 (patch)
tree20a59604edf72e7e949759a237785cd09a1bfaec /unsupported/test/splines.cpp
parent3930c9b0869ae2244fbacaba0e83217accfac6c6 (diff)
Fix "explicit instantiation of 'Eigen::Spline' must occur in namespace 'Eigen'" warnings
Diffstat (limited to 'unsupported/test/splines.cpp')
-rw-r--r--unsupported/test/splines.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/unsupported/test/splines.cpp b/unsupported/test/splines.cpp
index 1043453dc..a7eb3e0c4 100644
--- a/unsupported/test/splines.cpp
+++ b/unsupported/test/splines.cpp
@@ -11,6 +11,8 @@
#include <unsupported/Eigen/Splines>
+namespace Eigen {
+
// lets do some explicit instantiations and thus
// force the compilation of all spline functions...
template class Spline<double, 2, Dynamic>;
@@ -29,6 +31,8 @@ template class Spline<float, 3, 3>;
template class Spline<float, 3, 4>;
template class Spline<float, 3, 5>;
+}
+
Spline<double, 2, Dynamic> closed_spline2d()
{
RowVectorXd knots(12);