Boost C++ Libraries: Ticket #5914: std:: qualifier missing for <cstring> function https://svn.boost.org/trac10/ticket/5914 <p> In the math library, file boost/math/special_functions/nonfinite_num_facets.hpp includes &lt;cstring&gt;, but at line 144 refers to strlen without a std:: qualifier. Although g++ accepts the code, it does not conform to the requirements of the C++ standard (1998, 2003, 2011). Change needed: </p> <hr /> <p> 144c144 &lt; int width = (int)strlen(prefix) + (int)strlen(body); --- </p> <blockquote class="citation"> <blockquote> <p> int width = (int)std::strlen(prefix) + (int)std::strlen(body); </p> </blockquote> </blockquote> <p> g++ accepts the correct code, so there should be no compatibility issue. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5914 Trac 1.4.3 anonymous Mon, 19 Sep 2011 18:43:23 GMT <link>https://svn.boost.org/trac10/ticket/5914#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5914#comment:1</guid> <description> <p> I see my diffs got clobbered. I'll try again: </p> <pre class="wiki">------- nonfinite_num_facets.hpp ------- 144c144 &lt; int width = (int)strlen(prefix) + (int)strlen(body); --- &gt; int width = (int)std::strlen(prefix) + (int)std::strlen(body); </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 20 Sep 2011 07:53:45 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/5914#comment:2 https://svn.boost.org/trac10/ticket/5914#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">John Maddock</span> to <span class="trac-author">Paul A. Bristow</span> </li> </ul> Ticket anonymous Tue, 20 Sep 2011 18:05:13 GMT <link>https://svn.boost.org/trac10/ticket/5914#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5914#comment:3</guid> <description> <p> Sending content: I:\boost-trunk\boost\math\special_functions\nonfinite_num_facets.hpp Completed: At revision: 74480 </p> <p> as suggested for standard compliance. </p> <p> Paul Bristow </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sun, 16 Oct 2011 18:58:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5914#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5914#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/74984" title="Merge recent bug fixes from Trunk. Refs #6014 Refs #5832 Refs #5934 ...">[74984]</a>) Merge recent bug fixes from Trunk. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6014" title="#6014: Patches: Boost.Math patch to fix long double support on OpenBSD/hppa &amp; hppa64 (closed: fixed)">#6014</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5832" title="#5832: Bugs: Unable to clean compile Boost::Test (1.40.0) with GCC using -Weffc++ (closed: invalid)">#5832</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5934" title="#5934: Bugs: boost/math/tools/tuple.hpp omits &#34;tr1/&#34; from #include directive. (closed: fixed)">#5934</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6001" title="#6001: Bugs: math::tools::roots eps_tolerance wrong behaviour at 0. 0. (closed: fixed)">#6001</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5982" title="#5982: Bugs: Wrong value of `one_div_two_pi' in &lt;boost/math/constants/constants.hpp&gt; (closed: fixed)">#5982</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5914" title="#5914: Bugs: std:: qualifier missing for &lt;cstring&gt; function (closed: fixed)">#5914</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5927" title="#5927: Bugs: Missing #include guards (closed: fixed)">#5927</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Paul A. Bristow</dc:creator> <pubDate>Tue, 08 Nov 2011 15:24:57 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5914#comment:5 https://svn.boost.org/trac10/ticket/5914#comment:5 <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 Paul A. Bristow Tue, 22 Nov 2011 10:30:42 GMT severity, milestone changed; keywords set https://svn.boost.org/trac10/ticket/5914#comment:6 https://svn.boost.org/trac10/ticket/5914#comment:6 <ul> <li><strong>keywords</strong> stde:: qualifier added </li> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Problem</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.49.0</span> </li> </ul> Ticket