| 10 | fraction(const fraction<T>& other) |
| 11 | : n(other.n), d(other.d) { } |
| 12 | fraction<T> operator +(const fraction<T>& other) const { |
| 13 | return fraction<T>(n * other.d + other.n * d, |
| 14 | d * other.d);} |
| 15 | fraction<T> operator -(const fraction<T>& other) const { |
| 16 | return fraction<T>(n * other.d - other.n * d, |
| 17 | d * other.d); } |
nothing calls this directly
no outgoing calls
no test coverage detected