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: G++ 3.3.1 Specialization bug?


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



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