Merge pull request #10494 from JosJuice/dynamiclibrary-rule-of-five

Common: Make DynamicLibrary non-copyable
This commit is contained in:
Admiral H. Curtiss
2022-03-06 02:10:15 +01:00
committed by GitHub

View File

@ -24,6 +24,12 @@ public:
// Closes the library.
~DynamicLibrary();
DynamicLibrary(const DynamicLibrary&) = delete;
DynamicLibrary(DynamicLibrary&&) = delete;
DynamicLibrary& operator=(const DynamicLibrary&) = delete;
DynamicLibrary& operator=(DynamicLibrary&&) = delete;
// Returns the specified library name with the platform-specific suffix added.
static std::string GetUnprefixedFilename(const char* filename);