SyntaxFix
Write A Post
Hire A Developer
Questions
Like the others said, ISO C++ doesn't support that. But you can workaround it. Just use std::vector instead.
int* a = new int[N]; // fill a class C { const std::vector<int> v; public: C():v(a, a+N) {} };