dont make friend a template
This commit is contained in:
parent
85383ed7dc
commit
f61b5b14c6
1 changed files with 1 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue