debug mode performance patch

François Dumont francois.cppdevs@free.fr
Thu Nov 18 21:06:00 GMT 2010


On 11/17/2010 02:35 PM, Paolo Carlini wrote:
> 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.
>
>    
Is there a problem if I simply always use unsigned long long ?

François



More information about the Libstdc++ mailing list