![](/img/trans.png)
[英]std::filesystem::exists -- Do I need to check the std::error_code value if the function returns true?
[英]How do I test that an std::error_code is not an error?
我有一个返回std::error_code
。 我对错误消息不是特别感兴趣,只是方法是否成功。
测试std::error_code
表示成功操作的最佳方法是什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.