04-05-2015, 06:13 PM
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:
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.

