virtual char const *what() const throw();
};
#endif // !defined inc_structured_exception_
实现是:
#include <exception>
using namespace std;
#include "structured_exception.h"
#include "windows.h"
//
// ::
//
static void my_translator(unsigned code, exception_pointers *info)
{
switch (code)
{
case exception_access_violation:
throw access_violation(*info);
break;