std::string operationalReason = "";
It's fine, technically, but more common and nice just
std::string operationalReason;
By default, ctor lines will create an empty line
Yes, you are correct that string literals are stored in immutable memory blah blah, etc. etc., but the copy-ctor string always copies the string or C-string passed
Armen Tsirunyan
source share