#include <iostream> typedef void (*FType)(); FType set_unexpected(FType); struct Dumy { static void AtExcept() { std::cerr << "Error\n"; abort(); } Dumy(){set_unexpected(AtExcept);} } aDumy; int main(){}