From d2e9d5d3413470cb3a7fca3c86392cda3d32a906 Mon Sep 17 00:00:00 2001 From: schnellerhase <56360279+schnellerhase@users.noreply.github.com> Date: Mon, 17 Feb 2025 14:47:26 +0100 Subject: [PATCH] Use concept --- cpp/dolfinx/common/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/dolfinx/common/types.h b/cpp/dolfinx/common/types.h index 35d6704128..d025c444ac 100644 --- a/cpp/dolfinx/common/types.h +++ b/cpp/dolfinx/common/types.h @@ -16,7 +16,7 @@ namespace dolfinx /// point real or complex types. Note that this concept is different to /// std::floating_point which does not include std::complex. template -concept scalar = std::is_floating_point_v +concept scalar = std::floating_point || std::is_same_v>; /// @private These structs are used to get the float/value type from a