This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: namespace c99


Benjamin Kosnik <bkoz@redhat.com> writes:

| grep for c99 | grep namespace in c_std/bits

I did that and that is why I asked. From
c_std/bits/std_cmath.h

     tanh(long double __x) { return ::tanh(static_cast<double>(__x)); }
   #endif
   } // std


   #if _GLIBCPP_USE_C99
   // These are possible macros imported from C99-land. For strict
   // conformance, remove possible C99-injected names from the
   // global namespace, and sequester them in the c99 namespace. 
   namespace c99
   {
     template<typename _Tp>
       int 
       __capture_fpclassify(_Tp __f) { return fpclassify(__f); }

     template<typename _Tp>
       int 
       __capture_isfinite(_Tp __f) { return isfinite(__f); }

 
Judging from your answer, that was unintented, right?

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com


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