consider folowing code:
1 2 3 4 5 6 7 8 9 10 11
|
const class x {
public:
static float s;
};
float x::s = 4.00999f;
int main() {
x object;
cout << x.s;
return 0;
}
|
that compiles just fine, no errors no warnings... how?
I'm I missing something?
1 2 3 4
|
static class x { //C# stile comiles just fine ^^
public:
static float s;
};
|
Last edited on
What compiler is it? gcc doesn't compile this.
thanks,
so it look that MSVC++ has some compatibility issuses with C#