From f9feb66be26510f90b5fcd303523783e312cebdb Mon Sep 17 00:00:00 2001 From: Dani-Hub Date: Mon, 9 Mar 2015 22:29:18 +0100 Subject: [PATCH] Change exception data member from "reference to string" to "string" (Resolves the most serious part of issue #216) --- src/lib_json/json_value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index bcd2f35..8fbce54 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -158,7 +158,7 @@ public: virtual ~Exception() throw(); virtual char const* what() const throw(); protected: - std::string const& msg_; + std::string const msg_; }; class JSON_API RuntimeError : public Exception { public: