diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index a9a5327..7b33db8 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -1145,8 +1145,7 @@ void VulkanHppGenerator::appendDispatchLoaderDynamic(std::string & str) DynamicLoader &operator=( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT { m_success = other.m_success; - m_library = other.m_library; - other.m_library = nullptr; + std::swap(m_library, other.m_library); return *this; } diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index 7132c4d..0eb5af9 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -72528,8 +72528,7 @@ namespace VULKAN_HPP_NAMESPACE DynamicLoader &operator=( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT { m_success = other.m_success; - m_library = other.m_library; - other.m_library = nullptr; + std::swap(m_library, other.m_library); return *this; }