docs: Compiler Explorer examples compilation fixed

This commit is contained in:
Mateusz Pusz
2023-02-01 21:03:44 +01:00
parent 57ad07573d
commit 48d11cce8a
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -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::