mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-02 20:04:27 +02:00
README example fixed
This commit is contained in:
@@ -8,6 +8,11 @@
|
|||||||
## TL;DR
|
## TL;DR
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
|
#include <units/physical/si/velocity.h>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
using namespace units;
|
||||||
|
|
||||||
constexpr Velocity auto avg_speed(Length auto d, Time auto t)
|
constexpr Velocity auto avg_speed(Length auto d, Time auto t)
|
||||||
{
|
{
|
||||||
return d / t;
|
return d / t;
|
||||||
|
Reference in New Issue
Block a user