This is the mail archive of the gcc@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]

Re: Implementation of libc functions in std::


> > * Bernd Strieder (strieder@student.uni-kl.de) [20000829 19:47]:
> 
> The libstdc++-v3/bits/std_cmath header, I didn't look at before, is
> quite interesting, because it defines inline wrappers in namespace std,
> calling the corresponding functions in global namespace or compiler
> builtins. The same is done in std_cctype, std_complex, and std_cwctype,
> as is shown by:
[snip]
> Is there any hope that sometimes #include <cstd...> just creates names
> in std:: namespace and nothing in global namespace? AFAIK this is needed
> for standard compliance.

This should work when you configure gcc with --enable-cshadow-headers, but
this is not finished yet. You can read more about it in the libctdc++ 
mainling list archive. Quoting Benjamin Kosnik:

>The libstdc++-v3 header files are constructed in a more-funky-than-usual 
>way because of an attempt (currently broken) to squester the C bits into 
>some kind sanity for C++.
>
>Background details can be found on Nathan's web page:
>
>http://www.cantrip.org/cheaders.html

Best regards,
Artem.



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