Make std::uncaught_exception warning less noisy

This commit is contained in:
Eelco Dolstra 2019-10-09 23:04:11 +02:00
parent 926d3e5bb0
commit 55bba8e4f5
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 6 additions and 4 deletions

View file

@ -171,4 +171,9 @@ JSONObject JSONPlaceholder::object()
return JSONObject(state); return JSONObject(state);
} }
JSONPlaceholder::~JSONPlaceholder()
{
assert(!first || std::uncaught_exception());
}
} }

View file

@ -168,10 +168,7 @@ public:
{ {
} }
~JSONPlaceholder() ~JSONPlaceholder();
{
assert(!first || std::uncaught_exception());
}
template<typename T> template<typename T>
void write(const T & v) void write(const T & v)