mirror of
https://github.com/mpusz/mp-units.git
synced 2025-06-25 01:01:33 +02:00
docs: link to the code example updated in README
This commit is contained in:
@ -87,7 +87,8 @@ accuracy. Please see the below example for a quick preview of basic library feat
|
||||
|
||||
using namespace mp_units;
|
||||
|
||||
constexpr QuantityOf<isq::speed> auto avg_speed(QuantityOf<isq::distance> auto d, QuantityOf<isq::duration> auto t)
|
||||
constexpr QuantityOf<isq::speed> auto avg_speed(QuantityOf<isq::length> auto d,
|
||||
QuantityOf<isq::time> auto t)
|
||||
{
|
||||
return d / t;
|
||||
}
|
||||
@ -115,4 +116,4 @@ int main()
|
||||
}
|
||||
```
|
||||
|
||||
_Try it on the [Compiler Explorer](https://godbolt.org/z/b4a3Ya6dY)._
|
||||
_Try it on the [Compiler Explorer](https://godbolt.org/z/rrTojn47v)._
|
||||
|
Reference in New Issue
Block a user