g++ 2.95.2 - auto_ptr

John Love-Jensen eljay@adobe.com
Fri Mar 29 09:20:00 GMT 2002


(C++ lib 2.10)

Is this supposed to fail...

extern auto_ptr<Foo> NewFooFactory();
auto_ptr<Foo> foo;
foo = NewFooFactory(); // Compiler error.

...?

Or is there a bug in the compiler? Or a flaw in the <memory> header file?

--Eljay







More information about the Gcc-help mailing list