Expose virtual destructors on coral::file_reader and coral::file_writer

This commit is contained in:
kayomn 2023-02-22 21:00:11 +00:00
parent f601f51f7a
commit 9b06e7d2e2
1 changed files with 5 additions and 1 deletions

View File

@ -107,12 +107,16 @@ export namespace coral {
};
struct file_reader : public reader {
virtual ~file_reader() {}
virtual expected<u64, io_error> seek(u64 offset) = 0;
virtual expected<u64, io_error> tell() = 0;
};
struct file_writer : public writer {};
struct file_writer : public writer {
virtual ~file_reader() {}
};
/**
* Platform-generalized file system interface.