refactor: quantity::count() renamed to quantity::number()
Resolves #259
This commit is contained in:
1 parent
bcaf252dec
commit
901b09fd52
26 files changed
+283
-282
No files matched your search
@@ -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()`!
|
||||
Reference in new issue
Block a user