V3 PATCH to std_complex.h
Benjamin Kosnik
bkoz@redhat.com
Sun May 30 19:37:00 GMT 2004
On 30 May 2004 15:29:34 +0200
Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
>I usually prefer dispatching through class templates, but in this case
>I found the overloading exceptionally simple.
Agreed, this looks great BTW.
Wow, I'd not seen this:
template<typename _Tp>
inline _Tp
norm(const complex<_Tp>& __z)
{
return _Norm_helper<__is_floating<_Tp>::_M_type && !_GLIBCXX_FAST_MATH>::_S_do_it(__z);
}
That's pretty interesting.
-benjamin
More information about the Libstdc++
mailing list