且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

boost :: filesystem :: exists崩溃

更新时间:2023-11-11 23:27:46

使用不会抛出超载.

bool exists(const path& p, system::error_code& ec) noexcept;

但是,您将需要检查输出参数,因此这可能比捕获异常还要耗费更多精力.这取决于您要完成的工作.

You will want to check the output parameter however, so this may be more work than catching an exception. It depends what you're trying to accomplish.