0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-14 00:34:18 +01:00

ircd::json: Add assertion for stack unwind.

This commit is contained in:
Jason Volk 2019-12-04 16:04:29 -08:00
parent bc5160307f
commit 875c0bce05

View file

@ -1147,7 +1147,10 @@ ircd::json::stack::object::~object()
noexcept
{
if(!s)
{
assert(!m.s);
return; // std::move()'ed away
}
const unwind _{[this]
{
@ -1352,7 +1355,10 @@ ircd::json::stack::array::~array()
noexcept
{
if(!s)
{
assert(!m.s);
return; // std::move()'ed away
}
const unwind _{[this]
{