From 266d42c2cce3b0c1de537058737f882cf57c778c Mon Sep 17 00:00:00 2001 From: Dominik Wernberger Date: Sun, 21 Jul 2024 15:36:01 +0200 Subject: [PATCH] Add virtual destructor --- src/DataStream.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DataStream.hpp b/src/DataStream.hpp index efdec86..27bf565 100644 --- a/src/DataStream.hpp +++ b/src/DataStream.hpp @@ -36,6 +36,10 @@ class DataStream : public std::ifstream { } + virtual ~DataStream() + { + } + // Checks whether the stream has reached the end of the file. // I.e. reading another Byte would result in an error. bool isEoF()