debug mode performance patch

Paolo Carlini paolo.carlini@oracle.com
Wed Nov 17 13:35:00 GMT 2010


On 11/17/2010 02:30 PM, Jonathan Wakely wrote:
> unsigned long is not large enough to hold a pointer value on Win64.
> I'm not sure this actually causes a problem, but when
> _GLIBCXX_USE_C99_STDINT_TR1 is non-zero it's possible to use uintptr_t
> instead.
>   
Thanks Jonathan for noticing. In locale_facets.tcc I used this ugl-et ;)

      typedef __gnu_cxx::__conditional_type<(sizeof(void*)
                   
                                                        <=
sizeof(unsigned long)),
      unsigned long, unsigned long long>::__type _UIntPtrType;

Paolo.



More information about the Libstdc++ mailing list