[Webkit-unassigned] [Bug 176228] std::optional<Ref> should be as compact as RefPtr

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 1 21:27:05 PDT 2017


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

Yusuke Suzuki <utatane.tea at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |utatane.tea at gmail.com

--- Comment #3 from Yusuke Suzuki <utatane.tea at gmail.com> ---
(In reply to Alex Christensen from comment #1)
> Can we make the specialization copyable like RefPtr is?
> If we make a specialization of std::optional<Ref<T>> with the intent of
> saving memory, should we make similar specializations of std::optional<T&>
> and std::optional<bool>?

We already have std::optional<T&> specialization in Optional.h.
I would like to strongly support adding std::optional<bool>, which is super commonly shown pattern (tristate).

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


More information about the webkit-unassigned mailing list