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] |
| Other format: | [Raw text] | |
On Fri, Nov 22, 2002 at 08:54:09PM +0000, Nathan Myers wrote: > > > Are there namespace tricks I need to do to get at the sgi extensions? > > > simply using #include <ext/hash_map> doesn't seem to be doing the trick > > > as it claims hash_map is undeclared. > > > > They're in the __gnu_cxx namespace. > > For maximum portability, consider defining a namespace alias to use > to talk about extensions. E.g. [snip] > This is a bit cleaner than defining typedefs for all the instantiations > you might need. (It's a pity you can't say "namespace Sgi = ::;".) > > Phil, you might suggest something like this in the docs. This patch adds your recommendation almost verbatim (except for the concluding "it's a pity...", want it in?) and with a little extra context added at the beginning. I've added it to the "Extensions and Backward Compatibility" section of the FAQ, since this is referenced at the top of the ext/howto.html page. I'm not sure if that's the best place for it. Should there be separate tests for 3.0 and 3.1, IIRC the extensions were still in the std namespace until 3.1? jon
Attachment:
libstdc++-docs-extns.patch
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |