class test{
static const int veryprivate=3;
};
const int anarray[]={test::veryprivate};
g++巧妙地指出,anarray它既不是函数也不是成员函数。是否可以修复此代码保留veryprivate private?接受 C++11。
class test{
static const int veryprivate=3;
};
const int anarray[]={test::veryprivate};
g++巧妙地指出,anarray它既不是函数也不是成员函数。是否可以修复此代码保留veryprivate private?接受 C++11。