error: no matching function for call to 'std::exception:exception(const char[16])'时间:2023-03-09 02:50:07 环境:codeblocks 语言:C++ 在执行:throw new exception("queue is empty.");时 遇到问题:error: no matching function for call to 'std::exception:exception(const char[16])' 解决办法:修改为 std::logic_error e("xxx."); throw std::exception(e);