From 13c861ab58d7750f605659daa3e8631bf186f0bd Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Thu, 22 Feb 2018 14:53:56 +0100
Subject: [PATCH] [math] Make sign constexpr and noexcept

---
 dumux/common/math.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dumux/common/math.hh b/dumux/common/math.hh
index e076ffac73..c1fb3db5a3 100644
--- a/dumux/common/math.hh
+++ b/dumux/common/math.hh
@@ -501,7 +501,7 @@ Scalar antoine(Scalar temperature,
  * Returns 0 if the argument is zero.
  */
 template<class ValueType>
-int sign(const ValueType& value)
+constexpr int sign(const ValueType& value) noexcept
 {
     return (ValueType(0) < value) - (value < ValueType(0));
 }
-- 
GitLab