Commit 13c861ab authored by Timo Koch's avatar Timo Koch
Browse files

[math] Make sign constexpr and noexcept

parent 150b67f8
......@@ -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));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment