class test{
static const int veryprivate=3;
};
const int anarray[]={test::veryprivate};
g++
smartly points out that anarray
is neither a function or a member function. Is it possible to fix this code keeping veryprivate
private
? C++11 accepted.