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: debug mode performance patch


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.


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