void foo() { typedef std::auto_ptr<Matrix> matAP; matAP a(new Matrix(1000, 1000)); matAP b(new Matrix(1000, 1000)); }