We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81247af commit 5c33f6cCopy full SHA for 5c33f6c
src/core/include/mp-units/framework/reference.h
@@ -274,6 +274,11 @@ template<Reference R, typename Q>
274
// NOLINTNEXTLINE(cppcoreguidelines-missing-std-forward)
275
constexpr auto operator/(R, Q&& q) = delete;
276
277
+[[nodiscard]] consteval Unit auto get_common_unit(Unit auto u);
278
+
279
+template<Unit U1, detail::UnitConvertibleTo<U1{}> U2>
280
+[[nodiscard]] consteval Unit auto get_common_unit(U1 u1, U2 u2);
281
282
[[nodiscard]] consteval Unit auto get_common_reference(Unit auto u1, Unit auto u2, Unit auto... rest)
283
requires requires {
284
mp_units::get_common_quantity_spec(mp_units::get_quantity_spec(u1), mp_units::get_quantity_spec(u2),
0 commit comments