mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-15 01:45:46 -04:00
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:
parent
479a96fc22
commit
4567db2fdb
2 changed files with 36 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue