I have seen this question, but the solution provided there doesn't solve the issue.
static int num_instances;
std::vector<SomeClass::FunctionWithinTheClass> *mem[num_instances];
SomeClass::FunctionWithinTheClass *mem[num_instances]; //Even this raises an error
the value num_instances is obtained by reading a configuration file.
The error I get is :
array bound is not an integer constant before ‘]’ token
This is strange because the value num_instances is fixed at compile time.