G++ 3.3.1 Specialization bug?
Wu Yongwei
adah@netstd.com
Mon Sep 1 02:31:00 GMT 2003
Carlo Wood wrote:
> > #include <stddef.h>
>
> #include <cstddef>
No. Please notice that I used "size_t" instead of "std::size_t". Some
compilers do not support "std::size_t" well and I do not want the code
to work only in GCC. Otherwise things will be simpler.
>
> > #if __GNUC__ == 3 && __GNUC_MINOR__ > 0
> > #include <ext/hash_map>
> > namespace sgi {
> > using __gnu_cxx::hash;
> > using __gnu_cxx::hash_map;
> > }
>
> #define SGI_HASH_NAMESPACE __gnu_cxx
Yes, this is really the solution I use now (though I use the name SGI_EXT).
> [snip]
Macros can solve the problem for now. But I want to see whether a more
"decent" solution exists. __gnu_cxx is really uglifying things (yes, I
know there are reasons for this :-) ).
Best regards,
Wu Yongwei
More information about the Libstdc++
mailing list