c++visual-c++compiler-warnings

What do warnings C4247 and C4248 mean and why were they removed from Visual C++ 2005?


According to MSDN, Visual C++ 2003 and Visual C++ 6 could emit warning C4247

'member' not accessible because 'class1' uses 'access' to inherit from 'class2'

and warning C4248

'class1' : cannot access 'access' 'member' declared in class 'class2'

There's no information on these warnings and they are no longer emitted in newer versions (2005 and above).

What did they mean and why were they removed?


Solution

  • These were replaced by errors:

    Note that aside from the first digit, the error numbers are the same as the old warning numbers. For the most part, C++ errors start with '2', Managed C++ and C++/CLI errors start with '3', and warnings start with '4'.