Okay.
I remember to have heard something about the MS compilers not following the standard with variable scopes.
Does anyone know about this particular case with static variables (using max...
Type: Posts; User: sqrt(-1)
Okay.
I remember to have heard something about the MS compilers not following the standard with variable scopes.
Does anyone know about this particular case with static variables (using max...
"Should" is too vague i fear. ;)
The two mentioned compiler handle it differently as I have said.
You should declare and define your methods which contain more than one line of code at different places, which should solve the compiler warning.
meaning:
class MyClass
{
private:
...
Hello.
void Blah()
{
static int i;
...
if(case)
{
static int i;