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]

Re: sgi extensions


On Thu, Nov 28, 2002 at 01:28:29PM -0600, Benjamin Kosnik wrote:
> 
> >I'm about to commit it as follows
> >
> >      #ifdef __GNUC__
> >      #if __GNUC__ < 3
> >        #include <hash_map.h>
> >        namespace Sgi { using ::hash_map; }; // inherit globals
> >      #else
> >        #include <ext/hash_map>
> >        #if __GNUC_MINOR__ == 0
> >          namespace Sgi = std;               // GCC 3.0
> >        #else
> >          namespace Sgi = ::__gnu_cxx;       // GCC 3.1 and later
> >        #endif
> >      #endif
> >      #else      // ...  there are other compilers, right?
> >        namespace Sgi = std;
> >      #endif
> 
> FYI there are no other compilers officially supported.

Isn't this meant for users to put in their own code?  Just a few of 
them use compilers other than gcc.  Probably the final #else clause 
needs a sample #include in it if just for completeness' sake.  

When C++0x comes out (with a hash_map of its own, different from the
one in ext/) this will get rather more complicated, I suppose.

Nathan Myers
ncm-nospam@cantrip.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]