MSVC Code Analysis failure
#1
I tried MSVC's Code Analysis, but it fails to compile the server:
src\BlockInfo.h(34): error C2248: 'cBlockInfo::~cBlockInfo' : cannot access protected member declared in class 'cBlockInfo'

The relevant source:
static cBlockInfo & Get(BLOCKTYPE a_Type)
{
	static cBlockInfo ms_Info[256];
	static bool IsBlockInfoInitialized = false;
	if (!IsBlockInfoInitialized)
	{
		cBlockInfo::Initialize(ms_Info);
		IsBlockInfoInitialized = true;
	}
	return ms_Info[a_Type];
}  // Error reported here
Anyone got an idea why? The code compiles fine when Code Analysis is turned off again.
Reply
Thanks given by:


Messages In This Thread
MSVC Code Analysis failure - by xoft - 04-05-2015, 06:13 PM
RE: MSVC Code Analysis failure - by LO1ZB - 04-05-2015, 09:04 PM



Users browsing this thread: 1 Guest(s)