JSONCPP_OSTRINGSTREAM

This commit is contained in:
Christopher Dunn
2016-03-06 11:50:00 -06:00
parent 724ba29bd3
commit 38bb491400
6 changed files with 10 additions and 10 deletions

View File

@@ -25,7 +25,7 @@
# define JSON_FAIL_MESSAGE(message) \
{ \
std::ostringstream oss; oss << message; \
JSONCPP_OSTRINGSTREAM oss; oss << message; \
Json::throwLogicError(oss.str()); \
abort(); \
}
@@ -38,7 +38,7 @@
// release builds we abort, for a core-dump or debugger.
# define JSON_FAIL_MESSAGE(message) \
{ \
std::ostringstream oss; oss << message; \
JSONCPP_OSTRINGSTREAM oss; oss << message; \
assert(false && oss.str().c_str()); \
abort(); \
}