| 39 | } |
| 40 | |
| 41 | ScalarWithExceptions operator+(const ScalarWithExceptions& other) const |
| 42 | { |
| 43 | countdown--; |
| 44 | if(countdown<=0) |
| 45 | throw my_exception(); |
| 46 | return ScalarWithExceptions(*v+*other.v); |
| 47 | } |
| 48 | |
| 49 | ScalarWithExceptions operator-(const ScalarWithExceptions& other) const |
| 50 | { return ScalarWithExceptions(*v-*other.v); } |
nothing calls this directly
no test coverage detected