Improve File error handling. Massive effects...

API is somewhat stolen from Rust std::fs::File. Static factories didn't work out so well, though. Move semantics made my head explode.
TODO: Still a lot of places where errors aren't handled, but it's an improvement...
This commit is contained in:
Jared Boone
2016-05-16 14:01:44 -07:00
parent d905c446bf
commit 682a1706a3
18 changed files with 328 additions and 235 deletions

View File

@@ -69,7 +69,7 @@ public:
private:
void toggle();
void write_metadata_file(const std::string& filename);
Optional<File::Error> write_metadata_file(const std::string& filename);
void on_tick_second();