From b218787b984239c2311b91ac5386e642e94e9095 Mon Sep 17 00:00:00 2001
From: Andy Maloney <asmaloney@gmail.com>
Date: Sat, 14 Sep 2019 20:24:17 -0400
Subject: [PATCH] Remove extraneous conversion from string -> c_str -> string
 (#739)

---
 include/yaml-cpp/exceptions.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/yaml-cpp/exceptions.h b/include/yaml-cpp/exceptions.h
index ecf870a..eef2283 100644
--- a/include/yaml-cpp/exceptions.h
+++ b/include/yaml-cpp/exceptions.h
@@ -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;
-- 
GitLab