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.
in the following example definition of method "operator string" is registered on global level => class content is not resolved. #include <string> namespace litesql { using namespace std; class UpdateQuery { string table; public: operator std::string() const; }; } namespace litesql { using namespace std; UpdateQuery::operator string() const { string q = "UPDATE " + table + " SET "; return q; } }
Resolver can not find operator "string" in class UpdateQuery, cause it declared as "std::string". With "std::" in definition or without "std::" in declaration everything is OK.
*** Issue 141108 has been marked as a duplicate of this issue. ***
*** Issue 158604 has been marked as a duplicate of this issue. ***
fixed optimistic scenario in change set: http://hg.netbeans.org/main/rev/4799e5b119d4 - method declaration try to find definition in case cast operator definition is declared without scope - method definition try to find declaration in case class have exactly one cast operator with desired name
Integrated into 'main-golden', will be available in build *200902180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/4799e5b119d4 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixing: IZ#145037:"operator string" defintion incorrectly resolved - fixed optimistic scenario
fixed other cases http://hg.netbeans.org/cnd-main?cmd=changeset;node=2252491aeb19