This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/38720] _Relative_pointer_impl invokes undefined behavior
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jan 2009 14:45:05 -0000
- Subject: [Bug libstdc++/38720] _Relative_pointer_impl invokes undefined behavior
- References: <bug-38720-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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