mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #508 from jackoalan/dynamic-loader-move
Add move semantics to DynamicLoader
This commit is contained in:
commit
2daf787a63
@ -1131,6 +1131,25 @@ void VulkanHppGenerator::appendDispatchLoaderDynamic(std::string & str)
|
|||||||
#endif
|
#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
|
~DynamicLoader() VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
if ( m_library )
|
if ( m_library )
|
||||||
|
@ -72471,6 +72471,25 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
#endif
|
#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
|
~DynamicLoader() VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
if ( m_library )
|
if ( m_library )
|
||||||
|
Loading…
Reference in New Issue
Block a user