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