Skip to content

Commit

Permalink
Use concept
Browse files Browse the repository at this point in the history
  • Loading branch information
schnellerhase committed Feb 20, 2025
1 parent e1300cf commit d2e9d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/dolfinx/common/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <class T>
concept scalar = std::is_floating_point_v<T>
concept scalar = std::floating_point<T>
|| std::is_same_v<T, std::complex<typename T::value_type>>;

/// @private These structs are used to get the float/value type from a
Expand Down

0 comments on commit d2e9d5d

Please sign in to comment.