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] | |
Phil Edwards wrote:
Hi, Stefan. I won't have time to look over the code tonight, but I have
some quick comments after reading the message.
discussion...) and then tell the containers to use this by wrapping it through the __allocator<> adapter available in stl_alloc.h (i.e. vector< int, __allocator< void, nn4us::nn4us_alloc > > foo;)
^^^^ This should be int.
Correct, to much copy and paste here ;-)
I am running gcc3.1 so i guess thats the 3.0.97 code...- There seems to something "missing" in the __allocator<> code since I had to add the operator == and != in order to get basic_string<> to compile, this does however not happen if I try to compile with malloc_allocator which is part of stl_alloc.h - why I don't know...
Which version of the libstdc++ sources are you using? There's nothing called malloc_allocator (unless you meant __malloc_alloc_template). The operators for __allocator are template functions, defined around line 800 of stl_alloc.h in current sources.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |