Overloading vs. string functions, etc.
Mark Mitchell
mark@codesourcery.com
Thu May 24 23:56:00 GMT 2001
>>>>> "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
More information about the Libstdc++
mailing list