diff --git a/src/core/include/mp-units/ext/type_name.h b/src/core/include/mp-units/ext/type_name.h index 03d7e6ec..d368f869 100644 --- a/src/core/include/mp-units/ext/type_name.h +++ b/src/core/include/mp-units/ext/type_name.h @@ -37,6 +37,10 @@ template return name; } + +// This is typically used to deterministically chose one of the alternatives +// to guarantee the commutation of the operation (e.g., `a + b` should return +// the same type as `b + a`). template [[nodiscard]] consteval auto better_type_name(T1 v1, T2 v2) {