Add std::filesystem::filesystem_error object.

Not a standards-compliant implementation, but has the same vague shape, so should be easier to port later(?).
This commit is contained in:
Jared Boone
2016-05-12 18:19:28 -07:00
parent 479a96fc22
commit 4567db2fdb
2 changed files with 36 additions and 0 deletions

View File

@@ -76,6 +76,16 @@ std::string next_filename_stem_matching_pattern(const std::string& filename_stem
namespace std {
namespace filesystem {
struct filesystem_error {
const BYTE err;
operator bool() const {
return err != FR_OK;
}
std::string what() const;
};
using path = std::string;
using file_status = BYTE;