When exception processing is unwinding the stack, any exception thrown in destructors end up std::terminate()-in our process. Since all workarounds to report errors from destructors seems an overkill, and the only important place where we should notify the user about a failure is the stdex::stream::cache::~cache() (data loss occurs when failure happens here), and if we'd throw in stdex::stream::cache:: ~cache(), our process would get terminated anyway so the data loss is inevitable, let's just silence this for now and come up with a better solution later if we get smarter anytime in the future. Signed-off-by: Simon Rozman <simon@rozman.si>
Languages
C++
100%