Skip to content

Commit

Permalink
docs: get_kind() note added to "Systems of Quantities" chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Feb 13, 2024
1 parent 202c1d1 commit f1353a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/users_guide/framework_basics/systems_of_quantities.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,9 @@ static_assert(same_type<kind_of<isq::length> / isq::time, isq::length / isq::tim
Only a root quantity from the hierarchy tree or the one marked with `is_kind` specifier
in the `quantity_spec` definition can be put as a template parameter to the `kind_of`
specifier. For example, `kind_of<isq::width>` will fail to compile.
specifier. For example, `kind_of<isq::width>` will fail to compile. However, we can call
`get_kind(q)` to obtain a kind of any quantity:
```cpp
static_assert(get_kind(isq::width) == kind_of<isq::length>);
```

0 comments on commit f1353a7

Please sign in to comment.