Share via


VC2005 Breaking Change: No More Implicit 'int'

Original Code:

int main()
{
const x = 0;
}

Error VC2005 issues:

sample.cpp(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

Code after applying the fix:

int main()
{
const int x = 0;
}

For more details, check out https://msdn2.microsoft.com/en-us/library/ms173696.aspx

Thanks,
Ayman Shoukry