Skip to content

Commit

Permalink
Fix quantity operator
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed May 7, 2024
1 parent c3e70f5 commit 9ec131f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/corecel/math/Quantity.hh
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ CELER_CONSTEXPR_FUNCTION auto operator*(Quantity<U, T> lhs, T2 rhs) noexcept
return Quantity<U, std::common_type_t<T, T2>>{lhs.value() * rhs};
}

template<class U, class T, class T2>
CELER_CONSTEXPR_FUNCTION auto operator*(T rhs, Quantity<U, T> lhs) noexcept
template<class T, class U, class T2>
CELER_CONSTEXPR_FUNCTION auto operator*(T rhs, Quantity<U, T2> lhs) noexcept
-> decltype(auto)
{
return Quantity<U, std::common_type_t<T, T2>>{rhs * lhs.value()};
Expand Down

0 comments on commit 9ec131f

Please sign in to comment.