mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 02:17:16 +02:00
refactor: 💥 common_XXX()
functions renamed to get_common_XXX()
This is needed to release a name for `common_unit` type that is coming soon.
This commit is contained in:
@ -229,9 +229,9 @@ where the result of `length` is known as a **common quantity** type. A result of
|
||||
the first common node in a hierarchy tree of the same kind. For example:
|
||||
|
||||
```cpp
|
||||
static_assert(common_quantity_spec(isq::width, isq::height) == isq::length);
|
||||
static_assert(common_quantity_spec(isq::thickness, isq::radius) == isq::width);
|
||||
static_assert(common_quantity_spec(isq::distance, isq::path_length) == isq::path_length);
|
||||
static_assert(get_common_quantity_spec(isq::width, isq::height) == isq::length);
|
||||
static_assert(get_common_quantity_spec(isq::thickness, isq::radius) == isq::width);
|
||||
static_assert(get_common_quantity_spec(isq::distance, isq::path_length) == isq::path_length);
|
||||
```
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user