[webkit-dev] Tightening up smart pointer usage rules

Darin Adler darin at apple.com
Mon Jun 28 14:57:59 PDT 2010


On Jun 28, 2010, at 2:55 PM, Antti Koivisto wrote:

> Is the plan also to banish the std::auto_ptr? It seems pointless and confusing to allow both the OwnPtr and the auto_ptr.

Yes, that would be my preference.

PassOwnPtr is intended as a replacement for std::auto_ptr. Before PassOwnPtr existed, we used auto_ptr, but now we should replace any use of auto_ptr with PassOwnPtr and OwnPtr.

    -- Darin



More information about the webkit-dev mailing list