diff --git a/dune/solvers/common/typetraits.hh b/dune/solvers/common/typetraits.hh
index 968014f8a6f66357bc652713f267c204d90dfbc6..c1d77a2910d413be1ba2e51c1b1aa886341f1a39 100644
--- a/dune/solvers/common/typetraits.hh
+++ b/dune/solvers/common/typetraits.hh
@@ -4,13 +4,15 @@
 #include <type_traits>
 
 namespace Dune {
-template <typename T>
-struct isNumber
-    : public std::integral_constant<bool, std::is_arithmetic<T>::value> {};
+namespace Solvers {
+  template <typename T>
+  struct IsNumber
+      : public std::integral_constant<bool, std::is_arithmetic<T>::value> {};
 
-template <typename T>
-struct isNumber<std::complex<T>>
-    : public std::integral_constant<bool, isNumber<T>::value> {};
+  template <typename T>
+  struct IsNumber<std::complex<T>>
+      : public std::integral_constant<bool, IsNumber<T>::value> {};
+}
 }
 
 #endif