Subject: [Boost-bugs] [Boost C++ Libraries] #5914: std:: qualifier missing for <cstring> function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-19 18:41:21
#5914: std:: qualifier missing for <cstring> function
----------------------------------------+-----------------------------------
Reporter: stephen.clamage@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
Version: Boost 1.47.0 | Severity: Showstopper
Keywords: |
----------------------------------------+-----------------------------------
In the math library, file
boost/math/special_functions/nonfinite_num_facets.hpp
includes <cstring>, 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:
------- nonfinite_num_facets.hpp -------
144c144
< int width = (int)strlen(prefix) + (int)strlen(body);
---
> int width = (int)std::strlen(prefix) + (int)std::strlen(body);
g++ accepts the correct code, so there should be no compatibility issue.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5914> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC