![](/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.