This is the mail archive of the
mailing list for the GCC project.
Re: Bug in complex::norm
>>>>> "Gabriel" == Gabriel Dos Reis <email@example.com> writes:
Gabriel> Maurizio Loreti <firstname.lastname@example.org> writes:
Gabriel> | > Is complex<T> required to work with non-floating point types T?
Gabriel> | No. ISO/IEC 14882:1998 184.108.40.206 states:
Gabriel> | "The effect of instantiating template complex for any type other than
Gabriel> | float, double and long double is unspecified."
Gabriel> I don't recall if I changed norm's implementation, and if so I don't
Gabriel> recall why. But we should have a less inefficient implementation.
The fact that it is not required to work doesn't mean we should
intentionally choose an implementation that doesn't for no good
complex<int> is very important for my work in Digital Signal
Processing. I believe that once the DSP community becomes more
literate in modern C++ that I won't be the only person that would be
glad to see as much complex<int> functionality as is reasonable.