mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 03:14:29 +02:00
docs: Compiler Explorer link to basic operations example updated
This commit is contained in:
@@ -83,7 +83,7 @@ static_assert(10 * km / (5 * km) == 2 * one);
|
||||
static_assert(1000 / (1 * s) == 1 * kHz);
|
||||
```
|
||||
|
||||
_Try it on the [Compiler Explorer](https://godbolt.org/z/8acPeq743)._
|
||||
_Try it on the [Compiler Explorer](https://godbolt.org/z/fT1r4sohs)._
|
||||
|
||||
This library heavily uses C++20 features (concepts, classes as NTTPs, ...). Thanks to
|
||||
them the user gets a powerful but still easy to use interfaces and all unit conversions
|
||||
|
@@ -56,7 +56,7 @@ Here is a small example of operations possible on scalar quantities:
|
||||
static_assert(1000 / (1 * s) == 1 * kHz);
|
||||
```
|
||||
|
||||
!!! example "[Try it on Compiler Explorer](https://godbolt.org/z/8acPeq743)"
|
||||
!!! example "[Try it on Compiler Explorer](https://godbolt.org/z/fT1r4sohs)"
|
||||
|
||||
|
||||
This library requires some C++20 features ([concepts and constraints](https://en.cppreference.com/w/cpp/language/constraints),
|
||||
|
Reference in New Issue
Block a user