mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 19:04:27 +02:00
feat: convertibility of a quantity with a unit one
with the raw value added
Resolves #553
This commit is contained in:
@@ -24,7 +24,7 @@ Here is a small example of operations possible on scalar quantities:
|
||||
|
||||
static_assert(2 * m * (3 * m) == 6 * m2);
|
||||
|
||||
static_assert(10 * km / (5 * km) == 2 * one);
|
||||
static_assert(10 * km / (5 * km) == 2);
|
||||
|
||||
static_assert(1000 / (1 * s) == 1 * kHz);
|
||||
```
|
||||
@@ -51,7 +51,7 @@ Here is a small example of operations possible on scalar quantities:
|
||||
|
||||
static_assert(2 * m * (3 * m) == 6 * m2);
|
||||
|
||||
static_assert(10 * km / (5 * km) == 2 * one);
|
||||
static_assert(10 * km / (5 * km) == 2);
|
||||
|
||||
static_assert(1000 / (1 * s) == 1 * kHz);
|
||||
```
|
||||
|
Reference in New Issue
Block a user