Skip to content

Commit

Permalink
xo-unit: streamline with_units_from() using auto
Browse files Browse the repository at this point in the history
  • Loading branch information
Rconybea committed May 4, 2024
1 parent c5c2f83 commit 4ee8994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/xo/unit/quantity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ namespace xo {
};
} /*namespace detail*/

template <typename Q1, typename Q2, typename Int = typename Q2::ratio_int_type, natural_unit<Int> Unit = Q2::s_unit>
template <typename Q1, typename Q2, auto Unit = Q2::s_unit>
requires (quantity_concept<Q1>
&& quantity_concept<Q2>
&& Q1::always_constexpr_unit
Expand Down

0 comments on commit 4ee8994

Please sign in to comment.