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.

Bug 158604 - unsesolved class members in cast operator definition
Summary: unsesolved class members in cast operator definition
Status: RESOLVED DUPLICATE of bug 145037
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-16 11:54 UTC by Alexander Simon
Modified: 2009-02-16 13:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2009-02-16 11:54:00 UTC
Example:
header:
-------------------------
#include <string>
class NewClass {
public:
    bool _distinct;
    int foo();
    operator std::string() const;
};
-------------------------
source:
-------------------------
#include "NewClass.h"
using namespace std;
NewClass::foo(){
    if (_distinct){
        return 1;
    }
    return 0;
}

NewClass::operator string() const{
    std::string res = "SELECT ";
    if (_distinct){
        res = "";
    }
    return res;
}
-------------------------
member _distinct is not resolved in NewClass::operator string()
Comment 1 nnnnnk 2009-02-16 13:08:47 UTC

*** This issue has been marked as a duplicate of 145037 ***