[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 17:32:49 PDT 2009


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





------- Comment #3 from ddkilzer at webkit.org  2009-05-04 17:32 PDT -------
(In reply to comment #2)
> (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).

Sorry, that was a typo.  I meant to change it to:

> >     virtual PassOwnPtr<SomeClass> createSomeClass() { return 0; }


-- 
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