diff options
author | Tim King <taking@google.com> | 2016-10-02 18:08:29 -0700 |
---|---|---|
committer | Tim King <taking@google.com> | 2016-10-02 18:08:29 -0700 |
commit | d93074af065327e49fb4e5160670334618f88284 (patch) | |
tree | e3fff2e09573c39736e0833d77c7b105864b0f20 /src/util/integer_cln_imp.h | |
parent | f95488791b2d14e0710fea09202bb5638e66e93d (diff) |
Removing the throw specifiers from Cardinality.
Diffstat (limited to 'src/util/integer_cln_imp.h')
-rw-r--r-- | src/util/integer_cln_imp.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/util/integer_cln_imp.h b/src/util/integer_cln_imp.h index 6bfebbaf1..12619520f 100644 --- a/src/util/integer_cln_imp.h +++ b/src/util/integer_cln_imp.h @@ -321,16 +321,7 @@ public: * * @param exp the exponent */ - Integer pow(unsigned long int exp) const { - if(exp > 0){ - cln::cl_I result= cln::expt_pos(d_value,exp); - return Integer( result ); - }else if(exp == 0){ - return Integer( 1 ); - }else{ - throw Exception("Negative exponent in Integer::pow()"); - } - } + Integer pow(unsigned long int exp) const; /** * Return the greatest common divisor of this integer with another. |