forked from mpusz/mp-units
test: test_package made compatible with the VS2019
This commit is contained in:
@@ -23,9 +23,10 @@
|
|||||||
#include <units/physical/si/derived/speed.h>
|
#include <units/physical/si/derived/speed.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
using namespace units::physical;
|
using namespace units;
|
||||||
|
|
||||||
constexpr Speed auto avg_speed(Length auto d, Time auto t)
|
template<physical::Length Length, physical::Time Time>
|
||||||
|
constexpr auto avg_speed(Length d, Time t)
|
||||||
{
|
{
|
||||||
return d / t;
|
return d / t;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user