From d93074af065327e49fb4e5160670334618f88284 Mon Sep 17 00:00:00 2001 From: Tim King Date: Sun, 2 Oct 2016 18:08:29 -0700 Subject: Removing the throw specifiers from Cardinality. --- src/util/integer_cln_imp.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/util/integer_cln_imp.h') 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. -- cgit v1.2.3