-
Notifications
You must be signed in to change notification settings - Fork 4.1k
THRIFT-5698: remove use of deprecated std::iterator #3165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Client: cpp C++17 deprecated std::iterator. See https://www.fluentcpp.com/2018/05/08/std-iterator-deprecated/ Prior to this change, compiling while targeting C++17 or higher results in warnings.
|
NOTE: The commit content is same as #2778 . |
|
@kou Thanks for the work but do you have any idea what goes wrong here: Looks related |
|
From some reading (eg. std::iterator is deprecated: Why, What It Was, and What to Use Instead) it seems like all 5 options must be specified when replacing the deprecated This is confirmed in this change: CJCombrink@2dd5c9d |
|
Sorry... You're right. We should have defined |
|
@kou No worries, thanks for initiating this fix 👍 |
|
I split out the build fix into this PR (thank you @CJCombrink for doing the real work!) #3182 -- I was running into issues. |
PR #3165 broke the build with c++11. I split out the compile time fix from https://github.com/apache/thrift/pull/3167/files#diff-d8d7400cdf01511c2ad2df7caf958173c2e96e8633271709c9b0b5cd8e89215c to ensure we have a clean trunk (so I can have other changes on top). I can't take credit for the fixes. I verified this compiles with gcc, clang (on c++11) and also on clang with c++1z
Client: cpp
C++17 deprecated std::iterator.
See
https://www.fluentcpp.com/2018/05/08/std-iterator-deprecated/
Prior to this change, compiling while targeting C++17 or higher results in warnings.
[skip ci]anywhere in the commit message to free up build resources.