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 25, 2024
1 parent 824f0c1 commit 8bce9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api_reference/src/quantities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@
to represent the dimension of a derived quantity\irefiev{112-01-10}.
\begin{example}
\begin{codeblock}
constexpr auto acceleration = isq::dim_speed / isq::dim_time;
constexpr auto dim_acceleration = isq::speed.dimension / isq::dim_time;
static_assert(dealias(^decltype(acceleration)) ==
^derived_dimension<isq::dim_length, per<power<isq::dim_time, 2>>>);
\end{codeblock}
Expand Down

0 comments on commit 8bce9c6

Please sign in to comment.