[Webkit-unassigned] [Bug 205617] Add makeRefCounted<>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 28 13:22:57 PST 2019


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

--- Comment #5 from Antti Koivisto <koivisto at iki.fi> ---
I'm not convinced that the public constructor would be a problem in practice.

Accidentally stack-allocating refcounted objects and then passing them via RefPtrs seems bit far fetched, makeUnique could static_assert that the type is not RefCounted, and direct new/delete is effectively banned already.

That's why I'd prefer the simplest macro-free solution.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191228/f04c28f8/attachment.htm>


More information about the webkit-unassigned mailing list