Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct victim {
- int a;
- ~victim() { std::cout << "victim dead" << std::endl; }
- };
- void fn() { throw int(7); }
- int main()
- {
- try {
- victim vic;
- fn();
- }
- catch (const int &e) { std::cout << e; }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement