class DataStreamExcept : public Exception { protected: static const std::string codes[] = { "Cannot open stream", "Cannot close stream" }; }; stream.cpp:28: error: a brace-enclosed initializer is not allowed here before ‘{’ token stream.cpp:31: error: invalid in-class initialization of static data member of non-integral type ‘const char* []’