我看过这个问题,看不出问题出在哪里.我不是C++的专家,所以对我来说这看起来不错.我上次尝试时用于编译没有问题.
namespace yaaf {
/************************************************************************/
/* */
/* Standard YAAF Errors */
/* */
/************************************************************************/
/* XGYAAFError
*
* YAAF Error; this is the root of my YAAF errors, and is
* a descendant of the standard exception class
*/
class XGYAAFError : public std::exception {
public:
explicit XGYAAFError(const char *);
explicit XGYAAFError(const std::string &err);
const char *what() const throw()
{
return fError.c_str();
}
private:
std::string fError;
};
} // namespace yaaf
#endif
Run Code Online (Sandbox Code Playgroud)
GCC库基类......
/**
* @brief Base class for …Run Code Online (Sandbox Code Playgroud)