This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH, libstdc++] libstdc++ pb_assoc testcase fix
- From: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 6 Jul 2005 22:54:09 +0100
- Subject: Re: [PATCH, libstdc++] libstdc++ pb_assoc testcase fix
- References: <200507062054.j66Kst034042@makai.watson.ibm.com>
On Wed, Jul 06, 2005 at 04:54:55PM -0400, David Edelsohn wrote:
> A libstdc++ testcase for pb_assoc uses the type map_t, conflicting
> with that same type in system headers. The following patch changes the
> name to tree_map_t to make it more unique. I can change it to something
> else more unique if there are other preferences.
Am I right in thinking that any POSIX header is allowed to define any
name ending in _t, possibly as a macro, so maybe map_type or
tree_map_type would be even better? That is also consistent with the
standard library's size_type, value_type etc.
http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_02.html#tag_02_02_02
jon