Sorry if the question is rather elementary. You see, I've never defined constants with "const" keyword. I've always defined it in a macro. But apparently KDevelop can't recognize macro constant in the "CTRL+Space" hotkey (which is rather annoying). And defining the constants in global variables is a bad practice. So, the question is simple really, how do I define constants with "const typedef" keyword in a class? I've tried defining it in the ".h" and failed e.g.:
Thanks in advance.Code:class a { private: const int c_iTheConst = 10000; //Failed!!! };