[Webkit-unassigned] [Bug 153612] Cleanup: Make DedicatedWorkerThread::create() an inline template method

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 28 14:08:22 PST 2016


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

--- Comment #5 from Anders Carlsson <andersca at apple.com> ---
(In reply to comment #4)
> It seems somewhat strange to have a one-off variadic template here, since
> the number of parameters will never actually vary in practice.
> 
> I wonder if we should consider creating something similar to
> std::make_unique for Ref and RefPtr? That would let us remove this type of
> duplication all over our codebase.

I've thought about that. We could even call it static Ref<T> create(...) and put it on RefCountedBase!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160128/b4565078/attachment.html>


More information about the webkit-unassigned mailing list