Uh oh!
There was an error while loading. Please reload this page.
THRIFT-5698: remove use of deprecated std::iterator - #3165
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.
kou
commented
Jun 10, 2025
NOTE: The commit content is same as #2778 . |
CJCombrink
commented
Jun 12, 2025
@kou Thanks for the work but do you have any idea what goes wrong here: Looks related |
CJCombrink
commented
Jun 12, 2025
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 |
kou
commented
Jun 13, 2025
Sorry... You're right. We should have defined |
CJCombrink
commented
Jun 13, 2025
@kou No worries, thanks for initiating this fix 👍 |
mhlakhani
commented
Jul 27, 2025
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.