diff --git a/src/core/include/units/reference.h b/src/core/include/units/reference.h index e8987a32..626d7524 100644 --- a/src/core/include/units/reference.h +++ b/src/core/include/units/reference.h @@ -53,7 +53,7 @@ struct reference { template Rep> // TODO can we somehow return an explicit quantity type here? - [[nodiscard]] constexpr Quantity auto operator()(Rep&& value) const + [[nodiscard]] constexpr std::same_as> auto operator()(Rep&& value) const { return quantity(std::forward(value)); }