Z
zoe
Is it possible to initialize a non-static const array class-member of
a fundamental type?
Something like:
class Foo{}{
public:
Foo();
private:
const int myArray[];
};
Foo::Foo() : myArray({1,2,3}) {}
this does not work of course. But is it possible in some other way?
regards
Zoe
a fundamental type?
Something like:
class Foo{}{
public:
Foo();
private:
const int myArray[];
};
Foo::Foo() : myArray({1,2,3}) {}
this does not work of course. But is it possible in some other way?
regards
Zoe