[Webkit-unassigned] [Bug 25495] Implement PassOwnPtr and replace uses of std::auto_ptr

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 4 14:34:45 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=25495





------- Comment #2 from aroben at apple.com  2009-05-04 14:34 PDT -------
(In reply to comment #1)
> After implementing PassOwnPtr, I realized that you still must #include
> "SomeClass.h" anyway, but you can just return 0:
> 
>     #include "SomeClass.h"
>     [...]
>     virtual auto_ptr<SomeClass> createSomeClass() { return 0; }

If you do that, it will compile, but it will crash (at least in MSVC).


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list