From 9b06e7d2e212cfed68204bd649cc66b2248de8f0 Mon Sep 17 00:00:00 2001 From: kayomn Date: Wed, 22 Feb 2023 21:00:11 +0000 Subject: [PATCH] Expose virtual destructors on coral::file_reader and coral::file_writer --- source/coral/files.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/coral/files.cpp b/source/coral/files.cpp index 141a970..a168f07 100644 --- a/source/coral/files.cpp +++ b/source/coral/files.cpp @@ -107,12 +107,16 @@ export namespace coral { }; struct file_reader : public reader { + virtual ~file_reader() {} + virtual expected seek(u64 offset) = 0; virtual expected tell() = 0; }; - struct file_writer : public writer {}; + struct file_writer : public writer { + virtual ~file_reader() {} + }; /** * Platform-generalized file system interface.