aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-06-22 10:30:26 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-06-22 10:30:26 +0200
commit260a92333426f4610e7f5ed3fc5f4d18882671ee (patch)
tree58c58e92d8c1f088a4de2a2a0e3d61ee5cfb36a7 /test/main.h
parent3ed919e0edebc9aebc28c03168d40e720214733e (diff)
explicit template specialization cannot have a storage class
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/main.h b/test/main.h
index b3ed96000..6db976073 100644
--- a/test/main.h
+++ b/test/main.h
@@ -378,12 +378,12 @@ template<typename T> struct GetDifferentType<std::complex<T> >
{ typedef std::complex<typename GetDifferentType<T>::type> type; };
template<typename T> static std::string type_name() { return "other"; }
-template<> static std::string type_name<float>() { return "float"; }
-template<> static std::string type_name<double>() { return "double"; }
-template<> static std::string type_name<int>() { return "int"; }
-template<> static std::string type_name<std::complex<float> >() { return "complex<float>"; }
-template<> static std::string type_name<std::complex<double> >() { return "complex<double>"; }
-template<> static std::string type_name<std::complex<int> >() { return "complex<int>"; }
+template<> std::string type_name<float>() { return "float"; }
+template<> std::string type_name<double>() { return "double"; }
+template<> std::string type_name<int>() { return "int"; }
+template<> std::string type_name<std::complex<float> >() { return "complex<float>"; }
+template<> std::string type_name<std::complex<double> >() { return "complex<double>"; }
+template<> std::string type_name<std::complex<int> >() { return "complex<int>"; }
// forward declaration of the main test function
void EIGEN_CAT(test_,EIGEN_TEST_FUNC)();