xo-unit: ex3: simplify
This commit is contained in:
parent
b39f502c6c
commit
591a20c151
1 changed files with 2 additions and 2 deletions
|
|
@ -13,8 +13,8 @@ main () {
|
|||
using xo::flatstring;
|
||||
using namespace std;
|
||||
|
||||
constexpr stdquantity<u::second, double> t = q::minutes(2);
|
||||
constexpr stdquantity<u::meter, double> d = q::kilometers(2.5);
|
||||
constexpr stdquantity<u::second> t = q::minutes(2);
|
||||
constexpr stdquantity<u::meter> d = q::kilometers(2.5);
|
||||
|
||||
constexpr auto t2 = t*t;
|
||||
constexpr auto a = d / (t*t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue