1. 基类
2.const throw()
stackoverflow:
- const means that this function (which is a member function) will not change the observable state of the object it is called on. The compiler enforces this by not allowing you to call non-const methods from this one, and by not allowing you to modify the values of members.
- throw() means that you promise to the compiler that this function will never allow an exception to be emitted.
c++11:const noexcept
例如muduo新版: