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

[Bug libstdc++/16054] basic_string incorrectly handles allocator arguments


------- Additional Comments From pcarlini at suse dot de  2004-06-18 12:41 -------
>> However, the constructor:
>>      basic_string(const basic_string& __str);
>> has no allocator
>
> this is clearly mandated by the Standard (21.3.1).

Forgot to add: 21.3.1, p5 says: "In the first form, the Allocator value used is
copied from str.get_allocator()". Actually we had a bug in the implementation
of this constructor (libstd++/14245), already fixed for 3.4.1.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16054


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