Skip to content

Commit

Permalink
fix: clang compilation changes for quantity_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Aug 24, 2023
1 parent 85b6dd0 commit e8fada6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/include/mp-units/bits/quantity_cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ template<QuantitySpec auto ToQS, typename Q>
{
if constexpr (detail::QuantityKindSpec<std::remove_const_t<decltype(ToQS)>> &&
AssociatedUnit<std::remove_const_t<decltype(Q::unit)>>)
return make_quantity<q.unit>(std::forward<Q>(q).value());
return make_quantity<Q::unit>(std::forward<Q>(q).value());
else
return make_quantity<reference<ToQS, q.unit>{}>(std::forward<Q>(q).value());
return make_quantity<reference<ToQS, Q::unit>{}>(std::forward<Q>(q).value());
}

} // namespace mp_units

0 comments on commit e8fada6

Please sign in to comment.