Skip to content

Commit

Permalink
[qty.expr.temp.general] Extend example with kilogram
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Nov 7, 2024
1 parent ed702c3 commit 3540bdc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/api_reference/src/quantities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,10 @@
The framework ensures the following assertion holds.
\begin{codeblock}
using namespace si::unit_symbols;
static_assert(std::is_same_v<decltype(km / square(h)),
derived_unit<si::kilo_<si::metre>, per<power<non_si::hour, 2>>>>);
static_assert(
std::is_same_v<decltype(kg * km / square(h)),
derived_unit<si::kilo_<struct si::gram>, si::kilo_<struct si::metre>,
per<power<struct non_si::hour, 2>>>>);
\end{codeblock}
\end{example}

Expand Down

0 comments on commit 3540bdc

Please sign in to comment.