[RFC] Moving apart SGI extensions
Gabriel Dos Reis
gdr@codesourcery.com
Wed Dec 26 22:56:00 GMT 2001
Benjamin Kosnik <bkoz@redhat.com> writes:
[...]
| > What else should I do? Even inside __gnu_cxx should the names be uglifyied? In
| > case, how exactly, i.e., how when, f.i., __random_sample and random_sample are
| > both already used??
|
| Yeah usually the names have to be uglified even in the squestered namespace.
| So, random_sample -> __random_sample. I believe they all have different
| arguments, so it shouldn't matter if some already are named __random_sample.
Existing codes using such extensions might get in troubles. I don't
recall if we have a macro along the line _GLIBCPP_USE_SGI_EXTENSIONS.
| > Perhaps another namespace (not __gnu_cxx) should be used for SGI extensions vs
| > general extensions?
|
| Hmm. This is to be avoided if at all possible.
100% agreed.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com
More information about the Libstdc++
mailing list