Skip to content
Snippets Groups Projects
Verified Commit cf1b6cb4 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Add integral and floating point constraints

parent a15dbfd2
No related branches found
No related tags found
No related merge requests found
Pipeline #75724 canceled
......@@ -36,7 +36,8 @@ namespace Dune
}
template <class T>
T sqrt(T t)
constexpr auto sqrt(T t)
requires (std::is_floating_point_v<T> || std::is_integral_v<T>)
{
using std::sqrt;
// backport between C++20 and C++26
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment