Changeset 234835 in webkit


Ignore:
Timestamp:
Aug 13, 2018 10:55:10 PM (6 years ago)
Author:
don.olmstead@sony.com
Message:

Meaning of OptionSet::contains is unclear when used with OptionSet argument
https://bugs.webkit.org/show_bug.cgi?id=188501
<rdar://problem/43246242>

Reviewed by Simon Fraser.

MSVC is unable to compile contains using an initializer_list within a lambda.

  • wtf/OptionSet.h:

(WTF::OptionSet::contains const):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r234811 r234835  
     12018-08-13  Don Olmstead  <don.olmstead@sony.com>
     2
     3        Meaning of OptionSet::contains is unclear when used with OptionSet argument
     4        https://bugs.webkit.org/show_bug.cgi?id=188501
     5        <rdar://problem/43246242>
     6
     7        Reviewed by Simon Fraser.
     8
     9        MSVC is unable to compile contains using an initializer_list within a lambda.
     10
     11        * wtf/OptionSet.h:
     12        (WTF::OptionSet::contains const):
     13
    1142018-08-13  Antti Koivisto  <antti@apple.com>
    215
  • trunk/Source/WTF/wtf/OptionSet.h

    r234811 r234835  
    9999    constexpr bool contains(T option) const
    100100    {
    101         return containsAny({ option });
     101        return containsAny(option);
    102102    }
    103103
Note: See TracChangeset for help on using the changeset viewer.