Make move-constructors and move-assignment operators of vk::raii handle classes noexcept.

This commit is contained in:
asuessenbach
2021-05-25 15:40:26 +02:00
parent 5fe7d29f90
commit 7debcfa416
2 changed files with 104 additions and 103 deletions

View File

@@ -3664,11 +3664,11 @@ ${destructor}
${handleType}() = delete;
${handleType}( ${handleType} const & ) = delete;
${handleType}( ${handleType} && rhs )
${handleType}( ${handleType} && rhs ) VULKAN_HPP_NOEXCEPT
: ${moveConstructorInitializerList}
{}
${handleType} & operator=( ${handleType} const & ) = delete;
${handleType} & operator=( ${handleType} && rhs )
${handleType} & operator=( ${handleType} && rhs ) VULKAN_HPP_NOEXCEPT
{
if ( this != &rhs )
{
@@ -3759,12 +3759,12 @@ void VulkanHppGenerator::appendRAIIHandleContext( std::string &
~Context() = default;
Context( Context const & ) = delete;
Context( Context && rhs )
Context( Context && rhs ) VULKAN_HPP_NOEXCEPT
: m_dynamicLoader( std::move( rhs.m_dynamicLoader ) )
, m_dispatcher( std::move( rhs.m_dispatcher ) )
{}
Context & operator=( Context const & ) = delete;
Context & operator=( Context && rhs )
Context & operator=( Context && rhs ) VULKAN_HPP_NOEXCEPT
{
if ( this != &rhs )
{