This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Overloading vs. string functions, etc.
>>>>> "Andreas" == Andreas Jaeger <aj@suse.de> writes:
Andreas> So, what can glibc do and what should glibc not do under
Andreas> C++ compilation (and please explain why, I'd like to
I'm excited that you're willing to help with this.
How about, on GNU/Linux, just making our lives easy? :-)
Make <string.h> contain:
#ifdef __cplusplus
namespace std {
#endif
...
#ifdef __cplusplus
}
#endif
Also, add overloads for the variants of these functions that are not
present in C? And make the functions inlines that call
`__builtin_foo' under C++?
In other words, how about just making the C headers be valid C++
headers, too? This is Sun's approach, and it makes life much simpler
for the rest of the C++ library.
Does this make sense?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com