libstdc++/3759: nonconforming use of unqualified std:: names
david.abrahams@rcn.com
david.abrahams@rcn.com
Sat Jul 21 11:36:00 GMT 2001
>Number: 3759
>Category: libstdc++
>Synopsis: nonconforming use of unqualified std:: names
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 21 11:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: David Abrahams
>Release: GCC-3.0
>Organization:
>Environment:
Any
>Description:
the standard library uses many other standard library entities without explicit qualification. This is nonconforming.
>How-To-Repeat:
#include <vector>
struct fill {}; // comment out this line to compile successfully
struct y {};
void f()
{
std::vector<y> x(10);
x.insert(x.begin(), 10, y());
}
>Fix:
add std:: qualification to all uses of std::algorithms and classes within std::.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list