From 9988d9284cea127d1958f8ace2f987c931ad826f Mon Sep 17 00:00:00 2001 From: "Ralph J. Steinhagen" Date: Thu, 8 Apr 2021 09:54:44 +0200 Subject: [PATCH] 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. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9fb84f29..4cc245ff 100644 --- a/README.md +++ b/README.md @@ -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)._