Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
CC fail after A class's static method called.
nanyu:
--- Code: ---#include <iostream>
using namespace std;
class A
{
public:
static void Test()
{
}
};
struct Soo
{
int a;
};
Soo globalSoo;
int main()
{
A::Test(); //remove this line, then cc work well.
globalSoo.a = 9; //cc allways do work well here
Soo localeSoo;
localeSoo. // <-- cc do nothing
return 0;
}
--- End code ---
CC didn't work after I input "localSoo.".
After remove the line "A::Test()", cc work well when I input "localeSoo."
//////////////
Windows XP
Code::Blocks svn5911
blueshake:
yes,you are right.you also can move the statement Soo localeSoo; to the top of A::Test(); since the A:: will affect the scope of localeSoo
nanyu:
--- Quote from: blueshake on December 13, 2009, 03:08:31 am ---yes,you are right.you also can move the statement Soo localeSoo; to the top of A::Test(); since the A:: will affect the scope of localeSoo
--- End quote ---
Is it a bug of CC?
blueshake:
Seem
--- Quote from: nanyu on December 13, 2009, 03:24:49 am ---
--- Quote from: blueshake on December 13, 2009, 03:08:31 am ---yes,you are right.you also can move the statement Soo localeSoo; to the top of A::Test(); since the A:: will affect the scope of localeSoo
--- End quote ---
Is it a bug of CC?
--- End quote ---
Seem so.no time to check into it.
nanyu:
I do the same thing in CodeLite, everything ok. :(
Navigation
[0] Message Index
[#] Next page
Go to full version