[Webkit-unassigned] [Bug 211698] Use alias template to define `match_constness` in Wtf/wtp/TypeCasts.h
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun May 10 23:40:23 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=211698
--- Comment #8 from Darin Adler <darin at apple.com> ---
Comment on attachment 398990
--> https://bugs.webkit.org/attachment.cgi?id=398990
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=398990&action=review
> Source/WTF/wtf/TypeCasts.h:71
> + typename std::conditional<std::is_const<Reference>::value, typename std::add_const<T>::type, typename std::remove_const<T>::type>::type;
As long as we are modernizing, should use conditional_t, is_const_v, add_const_t, and remove_const_t.
--
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/20200511/c9477ca8/attachment.htm>
More information about the webkit-unassigned
mailing list