RESOLVED FIXED 231728
Remove std::iterator usage
https://bugs.webkit.org/show_bug.cgi?id=231728
Summary Remove std::iterator usage
Yusuke Suzuki
Reported 2021-10-14 02:24:14 PDT
[WTF] Remove std::iterator usage
Attachments
Patch (15.30 KB, patch)
2021-10-14 02:27 PDT, Yusuke Suzuki
ews-feeder: commit-queue-
Patch (16.82 KB, patch)
2021-10-14 02:38 PDT, Yusuke Suzuki
no flags
Yusuke Suzuki
Comment 1 2021-10-14 02:27:47 PDT
Yusuke Suzuki
Comment 2 2021-10-14 02:38:06 PDT
Keith Miller
Comment 3 2021-10-14 06:26:40 PDT
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?
Darin Adler
Comment 4 2021-10-14 09:04:46 PDT
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.
EWS
Comment 5 2021-10-14 09:39:45 PDT
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].
Radar WebKit Bug Importer
Comment 6 2021-10-14 09:40:19 PDT
Yusuke Suzuki
Comment 7 2021-10-14 10:09:35 PDT
Yup. That change was necessary because of ADL.
Note You need to log in before you can comment on or make changes to this bug.