diff --git a/include/xo/alloc2/abox.hpp b/include/xo/alloc2/abox.hpp index d34271a..1e032b0 100644 --- a/include/xo/alloc2/abox.hpp +++ b/include/xo/alloc2/abox.hpp @@ -7,6 +7,7 @@ #include "Allocator.hpp" #include +#include #include namespace xo { @@ -76,7 +77,13 @@ namespace xo { return abox(data); } else { - assert(false); + auto avail = alloc.available(); + auto req = sizeof(DRepr); + + std::cout << "panic: unable to allocate for abox" + << " :req " << req << " :avail " << avail + << std::endl; + std::terminate(); return abox(); }