virtual ~exception() throw() がC++ 98にあるのに、virtual ~exception() がC++ 11にある理由は何ですか?
C++11 がクラスのデストラクタをスローできるようにする設計上の決定は何exception
ですか?
ここから:
c++98:
class exception {
public:
exception () throw();
exception (const exception&) throw();
exception& operator= (const exception&) throw();
virtual ~exception() throw();
virtual const char* what() const throw();
}
c++11:
class exception {
public:
exception () noexcept;
exception (const exception&) noexcept;
exception& operator= (const exception&) noexcept;
virtual ~exception();
virtual const char* what() const noexcept;
}