forked from mpusz/mp-units
Merge branch 'master' of github.com:mpusz/units
This commit is contained in:
@@ -58,7 +58,7 @@ static_assert(10 * km / (5 * km) == 2);
|
|||||||
static_assert(1000 / (1 * s) == 1 * kHz);
|
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
|
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
|
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/7sshE7o58)._
|
||||||
|
@@ -34,7 +34,7 @@ Here is a small example of possible operations::
|
|||||||
|
|
||||||
.. admonition:: Try it on Compiler Explorer
|
.. admonition:: Try it on Compiler Explorer
|
||||||
|
|
||||||
`Example #1 <https://godbolt.org/z/ToTaoxKPa>`_
|
`Example #1 <https://godbolt.org/z/53bTahKd8>`_
|
||||||
|
|
||||||
This library requires some C++20 features (concepts, classes as
|
This library requires some C++20 features (concepts, classes as
|
||||||
:abbr:`NTTP (Non-Type Template Parameter)`, ...). Thanks to them the user gets a powerful
|
:abbr:`NTTP (Non-Type Template Parameter)`, ...). Thanks to them the user gets a powerful
|
||||||
@@ -83,7 +83,7 @@ of basic library features::
|
|||||||
|
|
||||||
.. admonition:: Try it on Compiler Explorer
|
.. admonition:: Try it on Compiler Explorer
|
||||||
|
|
||||||
`Example #2 <https://godbolt.org/z/YodshMKac>`_
|
`Example #2 <https://godbolt.org/z/7sshE7o58>`_
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user