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:
Ralph J. Steinhagen
2021-04-08 09:54:44 +02:00
committed by Mateusz Pusz
parent fadec03cee
commit 9988d9284c

View File

@@ -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)._