mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-09 23:24:27 +02:00
docs: admonition in "Value-preserving conversions" chapter removed
This commit is contained in:
@@ -12,13 +12,6 @@ The second line above converts the current quantity to the one expressed in metr
|
|||||||
contents. The third line converts the quantity expressed in kilometres into the one measured
|
contents. The third line converts the quantity expressed in kilometres into the one measured
|
||||||
in metres.
|
in metres.
|
||||||
|
|
||||||
!!! important
|
|
||||||
|
|
||||||
It is always assumed that one can convert a quantity into another one with a unit of a higher
|
|
||||||
resolution. There is no protection against overflow of the representation type. In case the target
|
|
||||||
quantity ends up with a value bigger than the representation type can handle, you will be facing
|
|
||||||
Undefined Behavior.
|
|
||||||
|
|
||||||
In case a user would like to perform an opposite transformation:
|
In case a user would like to perform an opposite transformation:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
|
Reference in New Issue
Block a user