WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
211670
Use std::iterator to implement iterator_category and the other iterator requirements
https://bugs.webkit.org/show_bug.cgi?id=211670
Summary
Use std::iterator to implement iterator_category and the other iterator requi...
Darin Adler
Reported
2020-05-09 12:43:20 PDT
Use std::iterator to implement iterator_category and the other iterator requirements
Attachments
Patch
(4.24 KB, patch)
2020-05-09 12:43 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2020-05-09 12:43:58 PDT
Created
attachment 398935
[details]
Patch
Yusuke Suzuki
Comment 2
2020-05-09 15:57:25 PDT
std::iterator is now deprecated in C++17, and defining these five typedefs in iterator class becomes the recommended way. using iterator_category = Category; using value_type = T; using difference_type = Distance; using pointer = Pointer; using reference = Reference;
https://www.fluentcpp.com/2018/05/08/std-iterator-deprecated/
It seems that we need to do the opposite thing :), or we should create std::iterator like thing in WTF and replace the current use of std::iterator with that.
Darin Adler
Comment 3
2020-05-09 16:18:04 PDT
OK. There are 14 places we are using std::iterator.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug