Given is a class with a static member.
class BaseClass
{
public:
static std::string bstring;
};
String has obviously to be default-
If the initializer can be expressed as a literal, it is solved in C++11:
inline std::string operator"" _s(const char* p, size_t n) {
return std::string{p, n};
}
class BaseClass {
// inline initialization using user-defined literals
// should allow for multiple definitions
std::string bstring{"."_s};
};