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

Re: user allocator portability


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


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