mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 05:04:27 +02:00
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 <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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user