From eab36a79b85b59fbbff75bf0dd748f877e94962e Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 8 May 2024 19:23:21 +0300 Subject: [w10] Added forgotten virtual keyword to certain destructors --- week10/Exercise07/FileString.h.gch | Bin 0 -> 2068739 bytes week10/Exercise07/String.h | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 week10/Exercise07/FileString.h.gch (limited to 'week10/Exercise07') diff --git a/week10/Exercise07/FileString.h.gch b/week10/Exercise07/FileString.h.gch new file mode 100644 index 0000000..09aa698 Binary files /dev/null and b/week10/Exercise07/FileString.h.gch differ diff --git a/week10/Exercise07/String.h b/week10/Exercise07/String.h index 3ea986a..c622f5b 100644 --- a/week10/Exercise07/String.h +++ b/week10/Exercise07/String.h @@ -12,7 +12,7 @@ public: String(const char* str); String(); - ~String(); + virtual ~String(); String(const String& other); String& operator=(const String& other); String(String&& other); -- cgit v1.2.3