[WTF] Remove std::iterator usage
Created attachment 441195 [details] Patch
Created attachment 441196 [details] Patch
Comment on attachment 441196 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=441196&action=review > Source/WebCore/platform/Timer.cpp:336 > + std::push_heap(TimerHeapIterator(heapData), TimerHeapIterator(heapData + m_heapItem->heapIndex() + 1), TimerHeapLessThanFunction()); What's the deal here? I don't see where we're `using std::push_heap` anywhere. Is that in a different file?
Comment on attachment 441196 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=441196&action=review >> Source/WebCore/platform/Timer.cpp:336 >> + std::push_heap(TimerHeapIterator(heapData), TimerHeapIterator(heapData + m_heapItem->heapIndex() + 1), TimerHeapLessThanFunction()); > > What's the deal here? I don't see where we're `using std::push_heap` anywhere. Is that in a different file? Presumably, because there was a type from namespace std involved, we didn’t have to write std::push_heap because of argument-dependent lookup <https://en.cppreference.com/w/cpp/language/adl>. Now the types have changed, and so we have to explicitly specify std.
Committed r284167 (242987@main): <https://commits.webkit.org/242987@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 441196 [details].
<rdar://problem/84259492>
Yup. That change was necessary because of ADL.