Skip to content

Commit f9feb66

Browse files
Dani-Hubcdunn2001
authored andcommitted
Change exception data member
from "reference to string" to "string" (Resolves the most serious part of issue #216)
1 parent ed495ed commit f9feb66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/lib_json/json_value.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class JSON_API Exception : public std::exception {
158158
virtual ~Exception() throw();
159159
virtual char const* what() const throw();
160160
protected:
161-
std::string const& msg_;
161+
std::string const msg_;
162162
};
163163
class JSON_API RuntimeError : public Exception {
164164
public:

0 commit comments

Comments
 (0)