common: dynamic_library: Add ctor for existing handle.
This commit is contained in:
parent
e9f35d3260
commit
32cf6beee3
2 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,8 @@ DynamicLibrary::DynamicLibrary(const char* filename) {
|
|||
void(Open(filename));
|
||||
}
|
||||
|
||||
DynamicLibrary::DynamicLibrary(void* handle_) : handle{handle_} {}
|
||||
|
||||
DynamicLibrary::DynamicLibrary(DynamicLibrary&& rhs) noexcept
|
||||
: handle{std::exchange(rhs.handle, nullptr)} {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue