https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120160

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jiang An from comment #1)
> `import std;` in every header looks too heavy to me. IMO it's undesired to
> import std::cin and its friends from <vector>.

If you're thinking about the global static initialization done for std::cout
etc. that's no longer done in <iostream>, at least for most targets. It's done
once in libstdc++.so and so there's no cost to including <iostream>.

Reply via email to