Skip to content

Commit

Permalink
xo-ratio: allow construction from numerator-only
Browse files Browse the repository at this point in the history
  • Loading branch information
Rconybea committed Apr 27, 2024
1 parent f860e23 commit 781f393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/xo/ratio/ratio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace xo {
*
* Ratio need not be normalized
**/
constexpr ratio(Int n, Int d) : num_{n}, den_{d} {}
constexpr ratio(Int n, Int d = 1) : num_{n}, den_{d} {}
///@}

/** @defgroup ratio-static-methods **/
Expand Down

0 comments on commit 781f393

Please sign in to comment.