//#include "windows.h"
#include "structured_exception.h"
/*static void my_translator(unsigned code, exception_pointers *)
{
throw code;
}*/
int main()
{
//_set_se_translator(my_translator);
structured_exception::install();
try
{
*(int *) 0 = 0; // generate structured exception
}
catch (structured_exception const &exception)
{
cout << "caught c++ exception " << hex << exception.what()
<< " thrown from " << exception.where() << endl;
}