Skip to content

Commit

Permalink
fix: MSVC workaround applied to test_package
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Sep 30, 2024
1 parent 1039332 commit a9fc203
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test_package/test_package.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ import mp_units;

using namespace mp_units;

constexpr QuantityOf<isq::speed> auto avg_speed(QuantityOf<MP_UNITS_IS_VALUE_WORKAROUND(isq::distance)> auto d,
QuantityOf<MP_UNITS_IS_VALUE_WORKAROUND(isq::duration)> auto t)
constexpr QuantityOf<MP_UNITS_IS_VALUE_WORKAROUND(isq::speed)> auto avg_speed(
QuantityOf<MP_UNITS_IS_VALUE_WORKAROUND(isq::distance)> auto d,
QuantityOf<MP_UNITS_IS_VALUE_WORKAROUND(isq::duration)> auto t)
{
return d / t;
}
Expand Down

0 comments on commit a9fc203

Please sign in to comment.