От: | Кодт | ||
Дата: | 10.10.14 13:07 | ||
Оценка: |
#include <stdio.h>
struct __declspec(novtable) A
{
virtual void foo() { printf("%p A::foo\n", this); }
void bar() { A::foo(); }
void buz() { foo(); }
};
int main()
{
__try
{
A a;
a.foo();
a.bar();
a.buz();
}
__except(1)
{
printf("catastropha!\n");
}
}