Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74480 - trunk/boost/math/special_functions
From: pbristow_at_[hidden]
Date: 2011-09-20 14:03:23


Author: pbristow
Date: 2011-09-20 14:03:22 EDT (Tue, 20 Sep 2011)
New Revision: 74480
URL: http://svn.boost.org/trac/boost/changeset/74480

Log:
std qualified strlen in int width = (int)std::strlen(prefix) + (int)std::strlen(body);

to comply with C++ standard.
Text files modified:
   trunk/boost/math/special_functions/nonfinite_num_facets.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/math/special_functions/nonfinite_num_facets.hpp
==============================================================================
--- trunk/boost/math/special_functions/nonfinite_num_facets.hpp (original)
+++ trunk/boost/math/special_functions/nonfinite_num_facets.hpp 2011-09-20 14:03:22 EDT (Tue, 20 Sep 2011)
@@ -141,7 +141,7 @@
         OutputIterator& it, std::ios_base& iosb, const char* prefix,
         const char* body, CharType fill) const
       {
- int width = (int)strlen(prefix) + (int)strlen(body);
+ int width = (int)std::strlen(prefix) + (int)std::strlen(body);
         std::ios_base::fmtflags adjust
           = iosb.flags() & std::ios_base::adjustfield;
         const std::ctype<CharType>& ct


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk