Skip to content

Commit

Permalink
Merge pull request #87 from deadb0d4/divmod-tuple-to-pair
Browse files Browse the repository at this point in the history
Thanks @deadb0d4closes #86
  • Loading branch information
saxbophone authored May 25, 2022
2 parents 30995ef + 0f9a647 commit 980542c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,4 @@ Sample output:
### Documentation
Full API Docs available at: [saxbophone.com/arby/](saxbophone.com/arby/)
Full API Docs available at: [saxbophone.com/arby/](https://saxbophone.com/arby/)
4 changes: 2 additions & 2 deletions arby/include/arby/Nat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <limits>
#include <string>
#include <stdexcept>
#include <tuple>
#include <utility>

#include "codlili.hpp"

Expand Down Expand Up @@ -501,7 +501,7 @@ namespace com::saxbophone::arby {
* @returns tuple of {quotient, remainder}
* @throws std::domain_error when rhs is zero
*/
static constexpr std::tuple<Nat, Nat> divmod(const Nat& lhs, const Nat& rhs) {
static constexpr std::pair<Nat, Nat> divmod(const Nat& lhs, const Nat& rhs) {
// division by zero is undefined
if (rhs._digits.size() == 0) {
throw std::domain_error("division by zero");
Expand Down

0 comments on commit 980542c

Please sign in to comment.