Skip to content

Commit

Permalink
mod does not need to have isomorphic quantities
Browse files Browse the repository at this point in the history
  • Loading branch information
SizzinSeal committed Jan 8, 2025
1 parent 0d1d541 commit 9c5a8a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/units/units.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,7 @@ template <isQuantity Q, isQuantity R> constexpr Q hypot(const Q& lhs, const R& r
return Q(std::hypot(lhs.internal(), rhs.internal()));
}

template <isQuantity Q, isQuantity R> constexpr Q mod(const Q& lhs, const R& rhs)
requires Isomorphic<Q, R>
{
template <isQuantity Q, isQuantity R> constexpr Q mod(const Q& lhs, const R& rhs) {
return Q(std::fmod(lhs.internal(), rhs.internal()));
}

Expand Down

0 comments on commit 9c5a8a5

Please sign in to comment.