diff --git a/test/main.h b/test/main.h index 6db976073..93163c3cb 100644 --- a/test/main.h +++ b/test/main.h @@ -377,7 +377,9 @@ template<> struct GetDifferentType { typedef float type; }; template struct GetDifferentType > { typedef std::complex::type> type; }; -template static std::string type_name() { return "other"; } +// Forward declaration to avoid ICC warning +template std::string type_name(); +template std::string type_name() { return "other"; } template<> std::string type_name() { return "float"; } template<> std::string type_name() { return "double"; } template<> std::string type_name() { return "int"; }