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]

Re: libstdc++ of g++ 3.4.x: std::swap and std::auto_ptr causes compilationerrors


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




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