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

Paolo Carlini
Mon Nov 15 23:02:00 GMT 2004

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

and, according to 25.2.2, p1 (about swap(T& a, T& b)):

    "Requires: Type T is CopyConstructible and Assignable"

Therefore, sorry, I disagree,

More information about the Libstdc++ mailing list