Add move semantics to DynamicLoader
This commit is contained in:
@@ -72471,6 +72471,25 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
#endif
|
||||
}
|
||||
|
||||
DynamicLoader( DynamicLoader const& ) = delete;
|
||||
|
||||
DynamicLoader( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT
|
||||
: m_success(other.m_success)
|
||||
, m_library(other.m_library)
|
||||
{
|
||||
other.m_library = nullptr;
|
||||
}
|
||||
|
||||
DynamicLoader &operator=( DynamicLoader const& ) = delete;
|
||||
|
||||
DynamicLoader &operator=( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
m_success = other.m_success;
|
||||
m_library = other.m_library;
|
||||
other.m_library = nullptr;
|
||||
return *this;
|
||||
}
|
||||
|
||||
~DynamicLoader() VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
if ( m_library )
|
||||
|
||||
Reference in New Issue
Block a user