It may have only been Visual C++ 6.0 or something, but I think I remember needing to add curly braces after a switch's case label to declare variables, is this still true with VS2010 and C++?
ex:
switch( 1 )
{
case 1:
{
int a; //<-- ok
}
break;
case 2:
int b; //<-- not ok?
break;
}
I only ask because I'm kind of under the weather and am in the middle of some updates to a project.