自定义异总是编译出错
#include <exception>
#include <string>
class wxdir_error:public std::exception
{
public:
explicit wxdir_error (const std::string &s):std::exception(s.c_str()){}
};
class compiler_error:public std::exception
{
public:
explicit compiler_error (const std::string &s):std::exception(s.c_str()){}
};
class building_error:public std::exception
{
public:
explicit building_error (const std::string &s):std::exception(s.c_str()){}
};