i found a problem on cc suggestion list .
here is the codes.
for the variable stt, the suggestion list have no
member funciton operator = ,operator +,see the attachment snap1
and the class tree have these function .see the attachment snap2.
anyone has comment on this.
#include <iostream>
using namespace std;
class Strings{
public:
Strings();
Strings(char *s);
Strings(const Strings &s);
Strings& operator = (const Strings& s){
};
Strings& operator + (const Strings& s){
};
Strings& operator + (const char *s){
};
~Strings(){
if(str != NULL)
delete [] str;
cout<<"~Strings() is called"<<endl;
}
void display(){
};
private:
char *str;
};
Strings stt;
stt.|
int main()
{
cout << "Hello world!" << endl;
return 0;
}
[attachment deleted by admin]
...another gotcha (I just found out):
If you open: filemanager.cpp
You'll realise that the CC stops parsing at:
LoaderBase* FileManager::Load(const wxString& file, bool reuseEditors)
All other functions like e.g.:
bool FileManager::ReplaceFile(const wxString& old_file, const wxString& new_file)
...are not in the list in the toolbar
i found the reason why the operator+ not show in suggestion list.
the operator+ token's variable m_IsOperator is true and in the fucntion
NativeParser::FindAIMatches,
the codes
if (token->m_IsOperator)
continue;
so the operator+ will be ignored.
my question is :
can i turn it on?