From 47baf3dd04d6099fc82ec3c6671961cc4cd43a69 Mon Sep 17 00:00:00 2001 From: "Piero V." Date: Sat, 19 Oct 2024 09:45:40 +0200 Subject: [PATCH] Make Stream's destructor public. A public destructor is needed to move around streams with their interface pointers (or std::unique_ptr) instead of the specific implementation. --- include/ozz/base/io/stream.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ozz/base/io/stream.h b/include/ozz/base/io/stream.h index faeba0844..a49a476bf 100644 --- a/include/ozz/base/io/stream.h +++ b/include/ozz/base/io/stream.h @@ -74,12 +74,12 @@ class OZZ_BASE_DLL Stream { // Returns the current size of the stream. virtual size_t Size() const = 0; - protected: - Stream() {} - // Required virtual destructor. virtual ~Stream() {} + protected: + Stream() {} + private: Stream(const Stream&); void operator=(const Stream&);