Skip to content
Permalink
Browse files
Merge pull request #10494 from JosJuice/dynamiclibrary-rule-of-five
Common: Make DynamicLibrary non-copyable
  • Loading branch information
AdmiralCurtiss committed Mar 6, 2022
2 parents d32c720 + 5446daa commit 9af9e79
Showing 1 changed file with 6 additions and 0 deletions.
@@ -24,6 +24,12 @@ class DynamicLibrary final
// 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);

0 comments on commit 9af9e79

Please sign in to comment.