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/rational_cln_imp.h | |
parent | 707e27e61addafdbcce5e7b6d32a61985f563dfb (diff) |
Removing more miscellaneous throw specifiers. (#1488)
Removing more miscellaneous throw specifiers.
Diffstat (limited to 'src/util/rational_cln_imp.h')
-rw-r--r-- | src/util/rational_cln_imp.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/rational_cln_imp.h b/src/util/rational_cln_imp.h index 0b09bf1fd..2752971d2 100644 --- a/src/util/rational_cln_imp.h +++ b/src/util/rational_cln_imp.h @@ -84,14 +84,15 @@ public: /** Constructs a rational with the value 0/1. */ Rational() : d_value(0){ } - /** * Constructs a Rational from a C string in a given base (defaults to 10). + * * Throws std::invalid_argument if the string is not a valid rational. * For more information about what is a valid rational string, * see GMP's documentation for mpq_set_str(). */ - explicit Rational(const char* s, unsigned base = 10) throw (std::invalid_argument){ + explicit Rational(const char* s, unsigned base = 10) + { cln::cl_read_flags flags; flags.syntax = cln::syntax_rational; @@ -105,7 +106,8 @@ public: throw std::invalid_argument(ss.str()); } } - Rational(const std::string& s, unsigned base = 10) throw (std::invalid_argument){ + Rational(const std::string& s, unsigned base = 10) + { cln::cl_read_flags flags; flags.syntax = cln::syntax_rational; |