Remove extraneous conversion from string -> c_str -> string

This commit is contained in:
Andy Maloney 2019-09-14 12:17:57 -04:00
parent 6cdf363625
commit 5479e5f9cd

View File

@ -160,7 +160,7 @@ class YAML_CPP_API Exception : public std::runtime_error {
static const std::string build_what(const Mark& mark,
const std::string& msg) {
if (mark.is_null()) {
return msg.c_str();
return msg;
}
std::stringstream output;