[RFC] num_put::do_put(const void*) when sizeof(long) != sizeof(void*)

Paolo Carlini pcarlini@suse.de
Mon Aug 23 23:35:00 GMT 2004


Paolo Carlini wrote:

>     only now I realize that if we have the do_get/do_put overloads for 
> long
> long types always enabled, then most probably the issue above can be 
> trivially
> fixed by casting to unsigned long long instead of unsigned long...

On second thought, probably the input half of the problem isn't so 
simple: on a
machine with sizeof(long long) > sizeof(void*) we end up accepting pointers
too big... Hummm...

Paolo.



More information about the Libstdc++ mailing list