From e0511669cf4163a12f828879a6fc19473262942d Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 16 Oct 2018 15:41:00 +0200 Subject: [PATCH] Concepts usage added to example --- example/example.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"; }