libstdc++ of g++ 3.4.x: std::swap and std::auto_ptr causes compilation errors

Vinzenz Feenstra evilissimo@web.de
Tue Nov 16 08:36:00 GMT 2004


Paolo Carlini wrote:

> Vinzenz Feenstra wrote:
>
>> Hi,
>>
>> I want to point to something which is imho a Bug.
>
>
>
> According to 20.4.5, p3, literally:
>
>    "auto_ptr does not meet the CopyConstructible and Assignable
>    requirements..."
>
> and, according to 25.2.2, p1 (about swap(T& a, T& b)):
>
>    "Requires: Type T is CopyConstructible and Assignable"
>
> Therefore, sorry, I disagree,
> Paolo.


hmm,

I'm wondering about that.

Why was implemented with version 3.4 of g++s libstdc++ ?

and not before?

I had no problems with 3.3.x and 3.2.x, other versions I didn't test, 
but in my opinion it is strange.

Ok, for now I know it.

Thx,

BR

Vinzenz





More information about the Libstdc++ mailing list