> On Sep 1, 2017, at 10:07 AM, Brady Eidson <[email protected]> wrote:
> 
> 
> 
>> On Sep 1, 2017, at 9:46 AM, Maciej Stachowiak <[email protected]> wrote:
>>> 
>>> Does RefPtr do anything for us today that std::optional<Ref> doesn’t?
>> 
>> The obvious things would be: uses less storage space
> 
> Grumble. If that’s true (which, thinking about it, of course it is true) this 
> is pretty much a nonstarter. So… nevermind.

It might be possible to make a specialization of std::optional<Ref> that avoids 
the overhead for a separate initialized bool. I'm not sure if it is wise to 
write specializations of standard library template classes though.

Regards,
Maciej


_______________________________________________
webkit-dev mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to