小编use*_*494的帖子

过度骑行错误... Lax ...可能违反C++语言规范?

我看过这个问题,看不出问题出在哪里.我不是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)

c++ overriding

5
推荐指数
1
解决办法
6419
查看次数

标签 统计

c++ ×1

overriding ×1