diff --git a/example/example.cpp b/example/example.cpp index a29ebd1c..cfcb101a 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -25,11 +25,10 @@ using namespace units; -template - requires Velocity && Time +template void foo(V v, T t) { - const auto distance = v * t; + const Length distance = v * t; std::cout << "A car driving " << v.count() << " km/h in a time of " << t.count() << " minutes will pass " << quantity_cast>(distance).count() << " meters.\n"; }