M
Mike Hewson
Have been researching as to why:
<example 1>
class ABC
{
static const float some_float = 3.3f;
};
<end example 1>
is not allowed.
Found that
<example 2>
class ABC
{
static const float some_float;
};
const float some_float = 3.3f;
<end example 2>
is allowed.
Is this correct and why is it so?
<example 1>
class ABC
{
static const float some_float = 3.3f;
};
<end example 1>
is not allowed.
Found that
<example 2>
class ABC
{
static const float some_float;
};
const float some_float = 3.3f;
<end example 2>
is allowed.
Is this correct and why is it so?