From f61b5b14c66c61dc0a741a09b19f05e9828f4685 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 30 Aug 2025 19:42:43 -0500 Subject: [PATCH] dont make friend a template --- include/bmath/mint.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/bmath/mint.hh b/include/bmath/mint.hh index 14a6ff2..da50055 100644 --- a/include/bmath/mint.hh +++ b/include/bmath/mint.hh @@ -110,9 +110,7 @@ class mint { return get() == static_cast(other.get()); } - template OtherT, OtherT OtherM> - friend std::ostream &operator<<(std::ostream &out, - mint const other) { + friend std::ostream &operator<<(std::ostream &out, mint const other) { return out << other.get(); }