Skip to content

Commit

Permalink
Fix "friend declarations declares a non-template function"
Browse files Browse the repository at this point in the history
  • Loading branch information
th-otto authored and OmniBlade committed Jun 12, 2024
1 parent 0d69403 commit ecf1f36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/int.h
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ template <int PRECISION> class Int
}

// Friend helper functions.
friend Int<PRECISION> Generate_Prime(Straw& rng, int pbits);
friend Int<PRECISION> Gcd(const Int<PRECISION>& a, const Int<PRECISION>& b);
template <int P> friend Int<P> Generate_Prime(Straw& rng, int pbits);
template <int P> friend Int<P> Gcd(const Int<P>& a, const Int<P>& b);
// friend bool NextPrime(Int<PRECISION> & p, const Int<PRECISION> & max, bool blumInt=false);
// friend Int<PRECISION> a_exp_b_mod_pq(const Int<PRECISION> & a, const Int<PRECISION> & ep, const Int<PRECISION>
//& eq, const Int<PRECISION> & p, const Int<PRECISION> & q, const Int<PRECISION> & u);
Expand Down

0 comments on commit ecf1f36

Please sign in to comment.