I have a class
class foo { public: foo(); foo( int ); private: static const string s; };
Where is the best place to initialize the
Only integral values (e.g., static const int ARRAYSIZE) are initialized in header file because they are usually used in class header to define something such as the size of an array. Non-integral values are initialized in implementation file.
static const int ARRAYSIZE