Boost C++ Libraries: Ticket #7257: Boost.Test alters and does not restore ostream precision after any Test macro https://svn.boost.org/trac10/ticket/7257 <p> Boost.Test alters and does not restore ostream precision after any Test macro. </p> <blockquote> <p> std::cout.precision(17); </p> </blockquote> <blockquote> <p> std::streamsize precision1 = std::cout.precision(); <em> 17 </em></p> </blockquote> <blockquote> <p> BOOST_TEST_MESSAGE(""); or any BOOST_TEST_* calls. </p> </blockquote> <blockquote> <p> std::streamsize precision2 = std::cout.precision(); <em> 6 (default) </em></p> </blockquote> <blockquote> <p> BOOST_CHECK_EQUAL(precision1, precision2); <em> expect both 17 </em></p> </blockquote> <p> This means that it is necessary to reset precision after every call to a BOOST_TEST_* macro, which is a tiresome and unexpected feature. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7257 Trac 1.4.3 Raffi Enficiaud Tue, 27 Oct 2015 12:38:41 GMT owner, status changed https://svn.boost.org/trac10/ticket/7257#comment:1 https://svn.boost.org/trac10/ticket/7257#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Gennadiy Rozental</span> to <span class="trac-author">Raffi Enficiaud</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Raffi Enficiaud Tue, 27 Oct 2015 12:52:14 GMT milestone changed https://svn.boost.org/trac10/ticket/7257#comment:2 https://svn.boost.org/trac10/ticket/7257#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.60.0</span> </li> </ul> Ticket Raffi Enficiaud Tue, 03 Nov 2015 12:59:44 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7257#comment:3 https://svn.boost.org/trac10/ticket/7257#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> <p> I just checked, and the fix should be visible in 1.59 already. Leaving for 1.60 as it appears in the changelog. </p> Ticket