3 ms·
This fails when you want `4 + c` or `c + 4.f` etc. So you either have a gross number of overloads doing the same thing, or you just put an implicit constructor
by fbkr 6y ago
This fails when you want `4 + c` or `c + 4.f` etc. So you either have a gross number of overloads doing the same thing, or you just put an implicit constructor to `complex`.
Also, I agree that implicit conversions in general should be avoided, but this complex number example feels like the perfect use case.