Update FileTable.h

copy constructor
This commit is contained in:
2025-03-20 19:55:44 -04:00
parent 0e17d02451
commit 8cab591f98
2 changed files with 4 additions and 0 deletions

View File

@@ -21,6 +21,8 @@ public:
public:
[[nodiscard]] static std::vector<unsigned char> Serialize(const FileTable& file_table);
public:
FileTable(const FileTable& rhs) : entries(rhs.entries) {};
FileTable(FileTable& rhs) : entries(rhs.entries) {};
FileTable() = default;
~FileTable() = default;

View File

@@ -29,4 +29,6 @@ int main() {
for (auto& e : running_tally.GetEntries())
std::cout << e.second.Path() << std::endl;
ReArchive::FileTable copy = running_tally;
}