Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10838: Missing std:: qualifier for strlen calls in string_ref_test2.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-25 18:57:53
#10838: Missing std:: qualifier for strlen calls in string_ref_test2.cpp
--------------------------------------------+----------------------
Reporter: Aparna Kumta <Aparna.Kumta@â¦> | Owner: marshall
Type: Bugs | Status: new
Milestone: To Be Determined | Component: utility
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------------+----------------------
Comment (by Aparna Kumta <aparna.kumta@â¦>):
In standard C++, names declared in the <cname> version of the C <name.h>
headers are only in namespace std. However, gcc puts the names in the
global namespace.
Line 54 of this file already qualifies strlen with std:: qualifier and as
seen above, there is no error message generated for this line.
54: const char *p = arg + std::strlen ( arg ) - 1;
I have just submitted a pull request for this.
Thanks.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10838#comment:3> 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:17 UTC