From: Ivan Matek (libbooze_at_[hidden])
Date: 2021-08-21 15:36:53
As you may know assert does not play nicely with constexpr evaluation.
But std::is_constant_evaluated/if consteval gives us a way to check when
the execution happens.
Does something like this exist in boost, and if not would that be a nice
I can not figure out how to support line numbers, filename in a same way
assert does, since assert will obviously just take the line info from where
it is called.
P.S. smart_assert is just a first name I thought of, I am fine with any
name as long as it is not some lengthy monstrosity like
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk