Commit c87bead7 authored by GILLES Sebastien's avatar GILLES Sebastien

#859 Add a static assert in Square() method.

parent 7ef53e90
......@@ -32,11 +32,11 @@ namespace MoReFEM
return std::numeric_limits<T>::max();
}
template<class T>
constexpr T Square(T value) noexcept
{
static_assert(std::is_arithmetic<T>());
return value * value;
}
......
Markdown is supported
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