This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

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



------- 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


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