refactor: quantity::count() renamed to quantity::number()

Resolves #259
This commit is contained in:
Mateusz Pusz committed 2021-03-19 06:47:37 +01:00
1 parent bcaf252dec
commit 901b09fd52
26 files changed
+283 -282

No files matched your search

+2 -2
View File
@@ -179,7 +179,7 @@ code will not compile::
To make it compile fine we have to either explicitly get the value stored in the quantity::
auto v = std::exp(quantity_cast<one>(10_q_m / 5_q_m).count());
auto v = std::exp(quantity_cast<one>(10_q_m / 5_q_m).number());
or use a mathematical wrapper function from `units` namespace::
@@ -188,4 +188,4 @@ or use a mathematical wrapper function from `units` namespace::
.. important::
Always remember to explicitly cast the quantity to the destination unit with `quantity_cast` before
calling `quantity::count()`!
calling `quantity::number()`!