[webkit-dev] Ptr<T>

Eric Seidel eric at webkit.org
Sat Aug 7 20:59:54 PDT 2010


I just spent a while debugging an error in code I wrote.

I added a couple new Foo* members to a class.  And forgot to 0 them in
one of the constructors.

RefPtr<T>, OwnPtr<T> would have done this for me.  But I wanted these
to be weak pointers.

How about we add a Ptr<T> (or WeakPtr<T> or AutoNull<T> or whatever)
to wtf to stop this nonsense.

-eric


More information about the webkit-dev mailing list