Re: libstdc++/3551: error in auto_ptr implementation
Matthias Klose <doko@klose.in-berlin.de> writes:
| The code below does not compile with g++ 3.0, but it seems correct
| judging by my C++ books.
No serious up-to-date C++ book can claim the code below should work.
| list<auto_ptr<int> > lapi;
That is incorrect: You cannot put an auto_ptr<> in a standard
container, by design.
| This one is much more complicated. I agree with Wichert that this
| should work,
No, the code is ill-formed.
-- Gaby
Reply to: