[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:43:42 PST 2016


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

--- Comment #8 from Andy Estes <aestes at apple.com> ---
(In reply to comment #5)
> (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!

Yeah, that'd be nice, since it'd let us keep the constructors private.

-- 
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/b9dee07d/attachment.html>


More information about the webkit-unassigned mailing list