This is the mail archive of the libstdc++@sourceware.cygnus.com 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]

Re: default allocator templ arg for map and multimap



>could you tell me the reason for the two const in the map and multimap :
>_Alloc = allocator<pair<const _Key, const _Tp> > >
>isntead of 
>_Alloc = allocator<pair<const _Key, _Tp> > >

Ugh -- you're right, i'm wrong --- it should have been

  _Alloc = allocator<pair<const _Key, _Tp> > >

in both places.

I can't believe i did that, and i'm a bit surprised all the tests i had
worked with that...

I left the laptop i've been doing this stuff on at home today,
so i won't be able to make a revised patch until tomorrow.  But it should
be easy enough to correct from the above description.

sorry for the confusion,
sss


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