From 1882088834620730520694805954431773142869 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 1 Sep 2023 14:23:06 -0400 Subject: Make the json exception macro specifiable externally too Thanks, windows --- json/jsoncpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json/jsoncpp.cpp') diff --git a/json/jsoncpp.cpp b/json/jsoncpp.cpp index 307cf560..f6661c6a 100644 --- a/json/jsoncpp.cpp +++ b/json/jsoncpp.cpp @@ -2654,7 +2654,7 @@ static inline void releaseStringValue(char* value, unsigned) { free(value); } namespace Json { // BN: subclass -Exception::Exception(JSONCPP_STRING const& msg) : JSONCPP_EXCEPTION(msg) {} +Exception::Exception(JSONCPP_STRING const& msg) : JSONCPP_EXCEPTION(msg.c_str()) {} Exception::~Exception() JSONCPP_NOEXCEPT {} // BN: removed what() RuntimeError::RuntimeError(JSONCPP_STRING const& msg) : Exception(msg) {} -- cgit v1.3.1