B
bob
Why doesn't c++ let me initialize static members like this:
class MySound
{
static CSoundManager* g_pSoundManager = NULL;
};
class MySound
{
static CSoundManager* g_pSoundManager = NULL;
};
Why doesn't c++ let me initialize static members like this:
class MySound
{
static CSoundManager* g_pSoundManager = NULL;
};
bob said:Why doesn't c++ let me initialize static members like this:
class MySound
{
static CSoundManager* g_pSoundManager = NULL;
};
anyway, a const static membert can be initialized that way, so
class MySound
{
const static int a = 0;
};
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.