Skip to content

mp_units::get_common_quantity_spec

The common quantity specification of the arguments. Use std::common_type_t on two quantities instead.

Synopsis

Declared in <mp-units/framework/quantity_spec_conversion.h>

[[deprecated("2.6.0: Use `std::common_type_t` on two quantities instead"),
  nodiscard]] consteval QuantitySpec auto
get_common_quantity_spec(auto q, auto... rest)
  requires requires { mp_units::detail::find_common_quantity_spec(q, 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.