Changeset 202306 in webkit


Ignore:
Timestamp:
Jun 21, 2016 4:52:50 PM (8 years ago)
Author:
Chris Dumez
Message:

Unreviewed, attempt to fix the build after r202303.

  • bindings/js/JSDOMIterator.h:

(WebCore::IteratorInspector::decltype):
(WebCore::IteratorInspector::test):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r202305 r202306  
     12016-06-21  Chris Dumez  <cdumez@apple.com>
     2
     3        Unreviewed, attempt to fix the build after r202303.
     4
     5        * bindings/js/JSDOMIterator.h:
     6        (WebCore::IteratorInspector::decltype):
     7        (WebCore::IteratorInspector::test):
     8
    192016-06-21  Chris Dumez  <cdumez@apple.com>
    210
  • trunk/Source/WebCore/bindings/js/JSDOMIterator.h

    r202305 r202306  
    6161};
    6262
     63template<typename IteratorValue>
     64class IteratorInspector {
     65private:
     66    template<typename T> static constexpr auto test(int) -> decltype(std::declval<T>()->key, std::declval<T>()->value, bool()) { return true; }
     67    template<typename T> static constexpr bool test(...) { return false; }
     68public:
     69    static constexpr bool isMap = test<IteratorValue>(0);
     70    static constexpr bool isSet = !isMap;
     71};
     72
    6373enum class IterationKind { Key, Value, KeyValue };
    6474
Note: See TracChangeset for help on using the changeset viewer.