Skip to content

Remove unnecessary <iostream> includes#856

Open
jwnimmer-tri wants to merge 1 commit intocoin-or:stable/3.14from
jwnimmer-tri:iostream
Open

Remove unnecessary <iostream> includes#856
jwnimmer-tri wants to merge 1 commit intocoin-or:stable/3.14from
jwnimmer-tri:iostream

Conversation

@jwnimmer-tri
Copy link
Copy Markdown

Including <iostream> means introducing the static (global) constructors and destructors for std::cin, std::cerr, and std::cout. That extra init and fini code is undesirable when those streams are not actually used. See https://en.cppreference.com/w/cpp/io/ios_base/Init.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 9, 2026

CLA assistant check
All committers have signed the CLA.

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.

2 participants