This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: G++ 3.3.1 Specialization bug?
- From: Wu Yongwei <adah at netstd dot com>
- To: gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Mon, 01 Sep 2003 10:27:35 +0800
- Subject: Re: G++ 3.3.1 Specialization bug?
- Organization: Kingnet Security, Inc.
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