summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeFileBlobReader.cpp
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2026-01-04 16:00:19 -0800
committerDentomologist <dentomologist@gmail.com>2026-01-04 17:56:08 -0800
commitb1c9c13ca36e80f5109c9c5b30dfed5820a5daf9 (patch)
treeda38fcf1ba44c64ff3de013b04a45b34701505ff /Source/Core/DiscIO/VolumeFileBlobReader.cpp
parentfb2a46c4cfa2687cd0191c00efaa4ce9431ca639 (diff)
VolumeFileBlobReader: Define default destructor in source file
Fix an error generated by Clang from the destructor of `std::unique_ptr<FileInfo> m_file_info` when setting the standard version to c++23: `invalid application of 'sizeof' to an incomplete type 'DiscIO::FileInfo'`
Diffstat (limited to 'Source/Core/DiscIO/VolumeFileBlobReader.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeFileBlobReader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/VolumeFileBlobReader.cpp b/Source/Core/DiscIO/VolumeFileBlobReader.cpp
index 7cbc06e589..92eb9b4ae2 100644
--- a/Source/Core/DiscIO/VolumeFileBlobReader.cpp
+++ b/Source/Core/DiscIO/VolumeFileBlobReader.cpp
@@ -33,6 +33,11 @@ VolumeFileBlobReader::VolumeFileBlobReader(const Volume& volume, const Partition
{
}
+// This is defined here instead of the header so that the definition of FileInfo is visible when
+// m_file_info is destroyed, preventing a compile error caused by calling unique_ptr's destructor
+// with an incomplete type.
+VolumeFileBlobReader::~VolumeFileBlobReader() = default;
+
std::unique_ptr<BlobReader> VolumeFileBlobReader::CopyReader() const
{
ASSERT_MSG(DISCIO, false, "Unimplemented");