This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: user allocator portability
- From: Phil Edwards <phil at jaj dot com>
- To: "Xiaowen (Jason) Liu" <jasonliu at cs dot dartmouth dot edu>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 24 Jun 2002 00:21:23 -0400
- Subject: Re: user allocator portability
- References: <3D169749.2030804@cs.dartmouth.edu>
On Sun, Jun 23, 2002 at 11:51:37PM -0400, Xiaowen (Jason) Liu wrote:
> typedef
> basic_string<char,string_char_traits<char>,MyAlloc<char> >
> __string;
>
> typedef
> map<__string,void*,less<__string>,MyAlloc<__string> >
> __map_string_pvoid;
First, you should not be using names that begin with two underscores.
Those are for implementors, not users.
Second, there is no such name as string_char_traits in the standard library.
Third, char_traits does exist and is usable, but whether it is visible
depends on how you declare your typedefs above, such as which namespace
you use. Perhaps you can give us more information here?
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams