Expose virtual destructors on coral::file_reader and coral::file_writer
This commit is contained in:
parent
f601f51f7a
commit
9b06e7d2e2
|
@ -107,12 +107,16 @@ export namespace coral {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct file_reader : public reader {
|
struct file_reader : public reader {
|
||||||
|
virtual ~file_reader() {}
|
||||||
|
|
||||||
virtual expected<u64, io_error> seek(u64 offset) = 0;
|
virtual expected<u64, io_error> seek(u64 offset) = 0;
|
||||||
|
|
||||||
virtual expected<u64, io_error> tell() = 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.
|
* Platform-generalized file system interface.
|
||||||
|
|
Loading…
Reference in New Issue