std::string Should Never be Initialized With a NULL Pointer
You can initialize std::string with a pointer to char. However, it does not check the pointer. When the pointer happens to be NULL the results are undefined: #includeusing std::string;const char