Matthias Klose <[EMAIL PROTECTED]> 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 via email to