I want to use a string constant in multiple places in my cpp file. Should I use std::string or char[]?
static const std::string kConstantString = "ConstantStringValue";
static const char kConstantString[] = "ConstantStringValue";
I was told to prefer the latter since it "avoids static allocation". Doesn't the char array also have to be statically allocated?