mp_units::get_common_reference¶
The common reference of the arguments. Use std::common_type_t on two quantities instead.
Synopsis¶
Declared in <mp-units/framework/reference.h>
[[deprecated("2.6.0: Use `std::common_type_t` on two quantities instead"),
nodiscard]] consteval Reference auto
get_common_reference(auto r1, auto r2, auto... rest)
requires requires { mp_units::detail::find_common_reference(r1, r2, rest...); };
Warning
Deprecated: 2.6.0: Use `std::common_type_t` on two quantities instead. Use of this entity is allowed but discouraged.
Return Value¶
Note
The return value should not be discarded.