diff options
author | Tim King <taking@cs.nyu.edu> | 2018-01-08 22:04:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-08 22:04:02 -0800 |
commit | 3c6398194b01372720964590b2b07d93590e511d (patch) | |
tree | 1e1f40d79eeabe8b30524fe96d279a4f3d5b8fd7 /src/util/integer_cln_imp.cpp | |
parent | 707e27e61addafdbcce5e7b6d32a61985f563dfb (diff) |
Removing more miscellaneous throw specifiers. (#1488)
Removing more miscellaneous throw specifiers.
Diffstat (limited to 'src/util/integer_cln_imp.cpp')
-rw-r--r-- | src/util/integer_cln_imp.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/util/integer_cln_imp.cpp b/src/util/integer_cln_imp.cpp index 8f98d908f..c67277ad0 100644 --- a/src/util/integer_cln_imp.cpp +++ b/src/util/integer_cln_imp.cpp @@ -59,8 +59,8 @@ Integer Integer::exactQuotient(const Integer& y) const { return Integer( cln::exquo(d_value, y.d_value) ); } - -void Integer::parseInt(const std::string& s, unsigned base) throw(std::invalid_argument) { +void Integer::parseInt(const std::string& s, unsigned base) +{ cln::cl_read_flags flags; flags.syntax = cln::syntax_integer; flags.lsyntax = cln::lsyntax_standard; @@ -86,7 +86,10 @@ void Integer::parseInt(const std::string& s, unsigned base) throw(std::invalid_a readInt(flags, s, base); } -void Integer::readInt(const cln::cl_read_flags& flags, const std::string& s, unsigned base) throw(std::invalid_argument) { +void Integer::readInt(const cln::cl_read_flags& flags, + const std::string& s, + unsigned base) +{ try { // Removing leading zeroes, CLN has a bug for these inputs up to and // including CLN v1.3.2. |