From c94a8c3c6a4ccd860ef7273f7e890039cc905642 Mon Sep 17 00:00:00 2001 From: Thorsten Otto Date: Wed, 20 Mar 2024 09:41:21 +0100 Subject: [PATCH] Fix "friend declarations declares a non-template function" --- common/int.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);