fre*_*low 8 c++ inheritance constructor namespaces exception
是否std需要对构造函数的调用进行限定std::?
class whatever : public std::runtime_error
{
public:
explicit whatever(const std::string& what) : runtime_error(what) {}
}; // ^ do I need std:: here?
Run Code Online (Sandbox Code Playgroud)
它在没有资格的情况下适用于我的编译器,但我不确定这种行为是否是标准的.