From 57787d421695550e2ee36f36a1f3c6aa0c1dd0f7 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Tue, 28 Jun 2016 10:39:39 +0200
Subject: [PATCH] Rename isNumber to Solvers::IsNumber

The namespace should avoid collisions once IsNumber is accepted into
dune-common.
---
 dune/solvers/common/typetraits.hh | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/dune/solvers/common/typetraits.hh b/dune/solvers/common/typetraits.hh
index 968014f8..c1d77a29 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
-- 
GitLab