This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: V3 PATCH to std_complex.h


Benjamin Kosnik <bkoz@redhat.com> writes:

| 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);
|     }

There seems to be no correponding C99 notion for that, therefore GCC
does not have it.  I left it as is, because it looked as "built-in" as
it could be :-)

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]