I am using Eclipse Luna 2 CDT and having a wierd issue with indexer. The indexer fails with "const" for parameter. I am using C++11 and other c++11 functions work fine.
Sample Class
Class Test() {
public:
int getX();
}
this works with no issue in eclipse
void method(Test& t) {
t.getX();
}
This gives wierd invalid arguments exception:Invalid arguments 'Candidates are:int getX()'
void method(const Test& t) {
t.getX(); //ERROR: Invalid arguments in eclipse
}
My question is why can Eclipse not work with const parameter. This works find with the build gcc build with no issue.
Aucun commentaire:
Enregistrer un commentaire