Linux上重写std::exception提示异常规范不兼容(Visual Studio上正常)
解决:
在const函数声明后加上noexcept override
造成原因:
C++11以后带来的限制:
https://en.cppreference.com/w/cpp/error/exception/what
参考原回答:
https://stackoverflow.com/questions/35763027/looser-throw-specifier-for-virtual-const-char-ro-errstderrwhat-const



