This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Code example: ------------------------ #include <string> namespace std { template <> struct less<class T*> { bool operator()(T const* r1, T const* r2); }; } namespace xml { using namespace std; string capitalize(const string& s); } ------------------------ Type string in the namespace xml is not resolved (no hyper link and completion).
Even more simple example. Hyperlink from string doesn't work. If you comment out std namespace definition, hyperlink works ok. #include <string> namespace std { } using namespace std; string s;
fixed http://hg.netbeans.org/main/rev/9a9601de0f7b
Integrated into 'main-golden', available in NB_Trunk_Production #244 build Changeset: http://hg.netbeans.org/main/rev/9a9601de0f7b User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed IZ#136175:Local namespace hide system namespace.
local namespace still hides system namespace elements like: - functions (in top list of Loki) - variables - enumerators - nested namespaces
*** Issue 118037 has been marked as a duplicate of this issue. ***
as examples, have a look in Loki SmartPrtr.h: std::swap(pointee_, rhs.pointee_) (and other std::swap calls) SmallObj.cpp: std::size_t, std::cout, std::endl ...
fixed http://hg.netbeans.org/main/rev/1c5d5f520dc0