Skip to content

librepgp: include <iterator> for std::back_inserter - #2588

Closed
ronaldtse wants to merge 1 commit into
mainfrom
fix/backinserter-include
Closed

ronaldtse wants to merge 1 commit into
mainfrom
fix/backinserter-include

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

stream-parse.cpp uses std::back_inserter (since the v2 SEIPD chunk-index handling in #2575) without including <iterator>. Toolchains where that header is not transitively provided fail to compile - the windows-msys2 CI legs currently fail on all seven msys2 matrix configurations with no member named 'back_inserter' in namespace 'std' after the MSYS2 image update. This adds the explicit include.

Test plan

  • Reproduced failure mode from the windows-msys2 CI log on main
  • Local builds unaffected (the include is additive)
  • windows-msys2 CI legs green

stream-parse.cpp uses std::back_inserter (introduced with the v2
SEIPD chunk-index handling) without including <iterator>; toolchains
where it is not transitively provided - currently the MSYS2 images -
fail to compile. Include it explicitly.
@ronaldtse

Copy link
Copy Markdown
Contributor Author

Closing as superseded: #2596 carried the same <iterator> include fix for stream-parse.cpp (merged together with a musl SIGPIPE fix in the SBOM manifest script). Thank you @kwkwan for the broader fix that resolved the windows-native break on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant