mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 12:24:26 +02:00
docs: Compiler Explorer examples compilation fixed
This commit is contained in:
@@ -59,7 +59,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/5dvY8Woh1)._
|
||||
_Try it on the [Compiler Explorer](https://godbolt.org/z/qbbbnfK3s)._
|
||||
|
||||
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
|
||||
@@ -107,4 +107,4 @@ int main()
|
||||
}
|
||||
```
|
||||
|
||||
_Try it on the [Compiler Explorer](https://godbolt.org/z/bcb87Kvea)._
|
||||
_Try it on the [Compiler Explorer](https://godbolt.org/z/b4a3Ya6dY)._
|
||||
|
@@ -32,7 +32,7 @@ Here is a small example of possible operations::
|
||||
|
||||
.. admonition:: Try it on Compiler Explorer
|
||||
|
||||
`Example #1 <https://godbolt.org/z/5dvY8Woh1>`_
|
||||
`Example #1 <https://godbolt.org/z/qbbbnfK3s>`_
|
||||
|
||||
This library requires some C++20 features (concepts, classes as
|
||||
:abbr:`NTTP (Non-Type Template Parameter)`, ...). Thanks to them the user gets a powerful
|
||||
@@ -81,7 +81,7 @@ of basic library features::
|
||||
|
||||
.. admonition:: Try it on Compiler Explorer
|
||||
|
||||
`Example #2 <https://godbolt.org/z/bcb87Kvea>`_
|
||||
`Example #2 <https://godbolt.org/z/b4a3Ya6dY>`_
|
||||
|
||||
.. seealso::
|
||||
|
||||
|
Reference in New Issue
Block a user