mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 21:24:27 +02:00
adding missing/required (?) '#defines' for compiler-explorer examples
N.B. The compiler explorer examples seem to miss to the following ``` #define UNITS_REFERENCES #define UNITS_LITERALS ``` defines to execute and recompile slightly modified versions.
This commit is contained in:
committed by
Mateusz Pusz
parent
fadec03cee
commit
9988d9284c
@@ -58,7 +58,7 @@ static_assert(10 * km / (5 * km) == 2);
|
||||
static_assert(1000 / (1 * s) == 1 * kHz);
|
||||
```
|
||||
|
||||
_Try it on the [Compiler Explorer](https://godbolt.org/z/ToTaoxKPa)._
|
||||
_Try it on the [Compiler Explorer](https://godbolt.org/z/53bTahKd8)._
|
||||
|
||||
This library requires some C++20 features (concepts, classes as NTTPs, ...). Thanks to
|
||||
them the user gets a powerful but still easy to use interface and all unit conversions
|
||||
@@ -106,4 +106,4 @@ int main()
|
||||
}
|
||||
```
|
||||
|
||||
_Try it on the [Compiler Explorer](https://godbolt.org/z/YodshMKac)._
|
||||
_Try it on the [Compiler Explorer](https://godbolt.org/z/a956fb64o)._
|
||||
|
Reference in New Issue
Block a user