xo-ratio: allow construction from numerator-only
This commit is contained in:
parent
f860e231f5
commit
781f393f91
1 changed files with 1 additions and 1 deletions
|
|
@ -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 **/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue