Menu

#345 Code completion fails if object's ctor has args

open
nobody
None
5
2012-09-26
2004-06-08
Anonymous
No

This seems to be a problem across all 4.9.8.x, and I
don't see a similar report in the last month of forum
entries or bug reports. However, I am new to Dev-
C++, and this is probably already known.

Given the simple program:

class C {
int mI;
public:
C() { mI = 0; }
C(int i) : mI(i) { };
~C() {};
void Set(int i) { mI = i; }
int Val() { return mI; }
};
int main(int argc, char *argv[]) {
C c1; c1.Set(42);
C c2(42);

// Typing "c1." here invokes code completion.
// Typing "c2." here does not, but should!

return 0;
}

Mike

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.