A Lippincott function is a function which converts an exception into a return code that can be safely handled in a callback from another language which did not support exceptions, such as C. Such functions, because they deliberately use throw with no argument, thereby rethrowing the most recently caught exception, cannot be called outside the context of a catch block.
I am wondering if modern C++ (C ++ 17 или C ++ 20) имеет какой -либо механизм объявления для специфического идентификации таких функций и обеспечения того, чтобы функция вызвана только из контекста блока Catch (или из контекста другой такой функции), генерируя ошибку времени компиляции, если она вызывает из любого другого контекста.
Подробнее здесь: https://stackoverflow.com/questions/551 ... t-be-calle