Boost C++ Libraries: Ticket #12901: time_point.hpp includes <iostream> header https://svn.boost.org/trac10/ticket/12901 <p> Inclusion of &lt;iostream&gt; via inclusion chain causes static global variable being linked into every translation unit. It causes numerous atexit() calls at startup and the processing at finish. The reason is the trick used by all major C++ Standard library developers - putting an instance with static visibility somewhere in iostream header. </p> <p> This is a minor performance issue, but it also hinders investigation of startup and exit defects in an application. When developer sets breakpoint in the atexit in C runtime library, there is a lot of noise from iostream if there are many cpp files in the application. </p> <p> There are several affected files in boost.chrono that have &lt;iostream&gt; included: </p> <p> io\duration_io.hpp io\time_point_units.hpp process_cpu_clocks.hpp time_point.hpp </p> <p> The reason is not very clear. Please, at least include more specific header, like &lt;ostream&gt;, if really needed. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12901 Trac 1.4.3 viboes Sat, 29 Apr 2017 15:37:48 GMT milestone changed https://svn.boost.org/trac10/ticket/12901#comment:1 https://svn.boost.org/trac10/ticket/12901#comment:1 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.65.0</span> </li> </ul> <p> <a class="ext-link" href="https://github.com/boostorg/chrono/commit/301adee6b8ea64ce27153b8d9ed4529b53e4c1b2"><span class="icon">​</span>https://github.com/boostorg/chrono/commit/301adee6b8ea64ce27153b8d9ed4529b53e4c1b2</a> </p> Ticket viboes Sat, 29 Apr 2017 15:38:00 GMT status changed https://svn.boost.org/trac10/ticket/12901#comment:2 https://svn.boost.org/trac10/ticket/12901#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Sat, 24 Jun 2017 14:57:04 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12901#comment:3 https://svn.boost.org/trac10/ticket/12901#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket