This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libstdc++] intptr_t usage
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Mark Mitchell <mark at codesourcery dot com>, Richard Henderson <rth at redhat dot com>, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 02 Apr 2007 10:57:13 +0200
- Subject: Re: [libstdc++] intptr_t usage
- References: <20070327220453.GA4342@redhat.com> <46099F40.4060409@suse.de> <20070327232910.GB3360@redhat.com> <4609AB4A.6040206@suse.de> <20070327235506.GA4679@redhat.com> <460D46F9.4000607@codesourcery.com> <460D539F.1010902@suse.de> <20070330182503.GN355@devserv.devel.redhat.com> <460D5B42.20305@suse.de>
Or just use __conditional_type which covers all the cases we actually
care about.
Yes, I think this is just the C++ way of writing what the glibc includes
do.
Do you want to just check in your first suggetion? ie
typedef __gnu_cxx::__conditional_type<(sizeof(const void*) <=
sizeof(unsigned long)), unsigned long, unsigned long long>::__type
_UIntPtrType;
-benjamin