27 Nov
2020
27 Nov
'20
5:20 p.m.
On Fri, 27 Nov 2020 at 10:36, Andrey Semashev via Boost
I'm not aware of a standard replacement of Boost.Assert. <cassert> is not one.
A tangent, but I'd rather use a simple and standard component that is used throughout all kinds of C and C++ code that some boost-specific thing that adds zero value. If you want to set a custom handler, just hook on SIGABRT, which will catch a lot more things than defining boost::assertion_failed. If you want to know where the assertion handler happened, just learn how to use core files or how to dump the stack yourself.