Merge pull request #969 from asuessenbach/noexcept

Make move-constructors and move-assignment operators of vk::raii handle classes noexcept.
This commit is contained in:
Andreas Süßenbach
2021-05-26 08:26:28 +02:00
committed by GitHub
2 changed files with 104 additions and 103 deletions

View File

@@ -3663,11 +3663,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 )
{
@@ -3758,12 +3758,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 )
{