Boost C++ Libraries: Ticket #10840: Missing std:: qualifier for puts call in test_7868.cpp https://svn.boost.org/trac10/ticket/10840 <p> File libs/chrono/test/test_7868.cpp fails when compiled with Oracle Solaris Studio 12.4 on Solaris 11.2 as follows: </p> <p> "../libs/chrono/test/test_7868.cpp", line 32: Error: The function "puts" must have a prototype. "../libs/chrono/test/test_7868.cpp", line 32: Error: The function "puts" must have a prototype. </p> <p> The file test_7868.cpp includes &lt;cstdio&gt;, however the call to puts needs to be qualified with std::. </p> <p> The diff's for the file are </p> <p> 32c32 </p> <p> &lt; puts(ctime(&amp;t)); </p> <p> --- </p> <blockquote class="citation"> <blockquote> <p> std::puts(ctime(&amp;t)); </p> </blockquote> </blockquote> <p> Per the C++ standard, including a &lt;cxxxx&gt; header like &lt;cstdio&gt; in this case, the names in these headers are only in the namespace std. Hence they need to be qualified with std::. </p> <p> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10840 Trac 1.4.3 viboes Fri, 05 Dec 2014 18:35:46 GMT milestone changed https://svn.boost.org/trac10/ticket/10840#comment:1 https://svn.boost.org/trac10/ticket/10840#comment:1 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.58.0</span> </li> </ul> <p> <a class="ext-link" href="https://github.com/boostorg/chrono/commit/9adab29010e6e6a4d4c4f9004ddd269ebb441115"><span class="icon">​</span>https://github.com/boostorg/chrono/commit/9adab29010e6e6a4d4c4f9004ddd269ebb441115</a> </p> Ticket viboes Wed, 07 Jan 2015 02:35:52 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10840#comment:2 https://svn.boost.org/trac10/ticket/10840#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket