Skip to content

Commit 5c33f6c

Browse files
committed
fix: missing function declarations added
1 parent 81247af commit 5c33f6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/include/mp-units/framework/reference.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ template<Reference R, typename Q>
274274
// NOLINTNEXTLINE(cppcoreguidelines-missing-std-forward)
275275
constexpr auto operator/(R, Q&& q) = delete;
276276

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+
277282
[[nodiscard]] consteval Unit auto get_common_reference(Unit auto u1, Unit auto u2, Unit auto... rest)
278283
requires requires {
279284
mp_units::get_common_quantity_spec(mp_units::get_quantity_spec(u1), mp_units::get_quantity_spec(u2),

0 commit comments

Comments
 (0)