M
michael
Dear new group members,
I need a compile time constant in a class.
As far as I know, I can achieve this via
class test
{
// lots of things
static const double i = 1.;
};
Is this also possible for arrays. I tried this
class test
{
// lots of things
static const double i[] = {1,2};
};
but it does not work.
Thanks,
Michael
I need a compile time constant in a class.
As far as I know, I can achieve this via
class test
{
// lots of things
static const double i = 1.;
};
Is this also possible for arrays. I tried this
class test
{
// lots of things
static const double i[] = {1,2};
};
but it does not work.
Thanks,
Michael