mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
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'`
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user