dont make friend a template

This commit is contained in:
Barrett Ruth 2025-08-30 19:42:43 -05:00
parent 85383ed7dc
commit f61b5b14c6

View file

@ -110,9 +110,7 @@ class mint {
return get() == static_cast<T>(other.get());
}
template <std::convertible_to<T> OtherT, OtherT OtherM>
friend std::ostream &operator<<(std::ostream &out,
mint<OtherT, OtherM> const other) {
friend std::ostream &operator<<(std::ostream &out, mint const other) {
return out << other.get();
}