Skip to content

Commit

Permalink
refactor: quantity_point default-constructibility removed from the …
Browse files Browse the repository at this point in the history
…`quantity_from` constraints
  • Loading branch information
mpusz committed Sep 6, 2024
1 parent c06a533 commit 40dc07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/include/mp-units/framework/quantity_point.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class quantity_point {
#endif

template<PointOrigin PO2>
requires requires { quantity_point{} - PO2{}; }
requires requires(quantity_point qp) { qp - PO2{}; }
[[nodiscard]] constexpr Quantity auto quantity_from(PO2) const
{
return *this - PO2{};
Expand Down

0 comments on commit 40dc07a

Please sign in to comment.