[Bug libstdc++/38720] _Relative_pointer_impl invokes undefined behavior

paolo dot carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Sun Jan 4 14:45:00 GMT 2009



------- Comment #4 from paolo dot carlini at oracle dot com  2009-01-04 14:45 -------
Hmm, for now I think you can include <ext/type_traits.h> and do something like:

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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38720



More information about the Gcc-bugs mailing list