mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-22 16:58:11 +08:00
Change exception data member
from "reference to string" to "string" (Resolves the most serious part of issue #216)
This commit is contained in:

committed by
Christopher Dunn

parent
ed495edcc1
commit
f9feb66be2
@@ -158,7 +158,7 @@ public:
|
|||||||
virtual ~Exception() throw();
|
virtual ~Exception() throw();
|
||||||
virtual char const* what() const throw();
|
virtual char const* what() const throw();
|
||||||
protected:
|
protected:
|
||||||
std::string const& msg_;
|
std::string const msg_;
|
||||||
};
|
};
|
||||||
class JSON_API RuntimeError : public Exception {
|
class JSON_API RuntimeError : public Exception {
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user