[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc
Subject: Re: How widely used are <ext/hash_set> and <ext/hash_map>?
From: Paweł_Sikora <pluto () agmk ! net>
Date: 2007-10-29 18:44:46
Message-ID: 200710291944.46125.pluto () agmk ! net
[Download RAW message or body]
On Friday 26 of October 2007 19:40:34 Joe Buck wrote:
> Some programs try to isolate the details of where the headers are by
> having one header with #ifdefs that, in turn, does the #include of
> <ext/hash_{set,map}>, but many others do not.
I think you shouldn't care about implementation specific #include <ext/...>.
I'm using libstdc++ and stlport in parallel and have suitable #ifdefs:
#if defined( _STLP_MSVC ) || defined( _STLP_UNIX )
#include <hash_map>
#define sgiext std
#elif defined( __GLIBCXX__ )
#include <ext/hash_map>
#define sgiext __gnu_cxx
#else
#error "sgi::hash_map implementation not available?"
#endif
sgiext::hash_map<...>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic