test: test_package made compatible with the VS2019

This commit is contained in:
Mateusz Pusz
2020-12-23 20:22:13 +01:00
parent d3f20e22a3
commit 56c2d5090b

View File

@@ -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;
} }