class A{ public: //…… static const vector<string>* ps; //…… private: //…… };
#include <vector> using namespace std; class A { public: A(); public: //…… static const vector<string>* ps; //…… private: //…… }; const vector<string> *A::ps = new vector<string>; A::A() { }