[msvc] remove MP_UNITS_CONSTRAINED_AUTO_WORKAROUND

This commit is contained in:
Jonas Hoppe
2024-09-04 10:19:15 +02:00
parent b05b3796ce
commit 8be458b0b7
3 changed files with 3 additions and 6 deletions

View File

@ -151,7 +151,7 @@ void example()
const auto acceleration = isq::acceleration(measurement{9.8, 0.1} * m / s2);
const auto time = measurement{1.2, 0.1} * s;
const MP_UNITS_CONSTRAINED_AUTO_WORKAROUND(QuantityOf<isq::velocity>) auto velocity = acceleration * time;
const QuantityOf<(isq::velocity)> auto velocity = acceleration * time;
std::cout << acceleration << " * " << time << " = " << velocity << " = " << velocity.in(km / h) << '\n';
const auto length = measurement{123., 1.} * m;