Skip to content

Commit

Permalink
[qty.dim.types] Fix derived_dimension example
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz Pusz <[email protected]>
  • Loading branch information
JohelEGP and mpusz authored Oct 20, 2024
1 parent b68cf1b commit 06620ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api_reference/src/quantities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,9 @@
to represent the dimension of a derived quantity\irefiev{112-01-10}.
\begin{example}
\begin{codeblock}
using acceleration = decltype(si::dim_speed / si::dim_time);
static_assert(dealias(^acceleration) ==
^derived_dimension<si::dim_length, per<power<si::dim_time, 2>>>);
constexpr auto acceleration = isq::dim_speed / isq::dim_time;
static_assert(dealias(^decltype(acceleration)) ==
^derived_dimension<isq::dim_length, per<power<isq::dim_time, 2>>>);
\end{codeblock}
\end{example}
Expand Down

0 comments on commit 06620ae

Please sign in to comment.