Skip to content

Commit

Permalink
refactor: MSVC workaround for constrained auto variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Jan 5, 2024
1 parent 09d923d commit db4a24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/measurement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,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 QuantityOf<isq::velocity> auto velocity = acceleration * time;
const MP_UNITS_CONSTRAINED_AUTO_WORKAROUND(QuantityOf<isq::velocity>) auto velocity = acceleration * time;
std::cout << acceleration << " * " << time << " = " << velocity << " = " << velocity.in(km / h) << '\n';

const auto length = measurement{123., 1.} * m;
Expand Down

0 comments on commit db4a24a

Please sign in to comment.