diff --git a/common/int.h b/common/int.h index 7e0a99b3..53258cc9 100644 --- a/common/int.h +++ b/common/int.h @@ -403,8 +403,8 @@ template class Int } // Friend helper functions. - friend Int Generate_Prime(Straw& rng, int pbits); - friend Int Gcd(const Int& a, const Int& b); + template friend Int

Generate_Prime(Straw& rng, int pbits); + template friend Int

Gcd(const Int

& a, const Int

& b); // friend bool NextPrime(Int & p, const Int & max, bool blumInt=false); // friend Int a_exp_b_mod_pq(const Int & a, const Int & ep, const Int //& eq, const Int & p, const Int & q, const Int & u);