Merge pull request #1208 from asuessenbach/vector

Introduce explicit default construction on nullptr_t for vector-based raii-classes.
This commit is contained in:
Andreas Süßenbach 2022-02-16 14:08:24 +01:00 committed by GitHub
commit 12dac7ffaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -7077,6 +7077,7 @@ ${enter} class ${handleType}s : public std::vector<VULKAN_HPP_NAMESPACE::VULKAN
{
public:
${arrayConstructors}
${handleType}s( std::nullptr_t ) {}
${handleType}s() = delete;
${handleType}s( ${handleType}s const & ) = delete;

View File

@ -3259,6 +3259,8 @@ namespace VULKAN_HPP_NAMESPACE
}
}
PhysicalDevices( std::nullptr_t ) {}
PhysicalDevices() = delete;
PhysicalDevices( PhysicalDevices const & ) = delete;
PhysicalDevices( PhysicalDevices && rhs ) = default;
@ -5733,6 +5735,8 @@ namespace VULKAN_HPP_NAMESPACE
}
}
CommandBuffers( std::nullptr_t ) {}
CommandBuffers() = delete;
CommandBuffers( CommandBuffers const & ) = delete;
CommandBuffers( CommandBuffers && rhs ) = default;
@ -6574,6 +6578,8 @@ namespace VULKAN_HPP_NAMESPACE
}
}
DescriptorSets( std::nullptr_t ) {}
DescriptorSets() = delete;
DescriptorSets( DescriptorSets const & ) = delete;
DescriptorSets( DescriptorSets && rhs ) = default;
@ -7143,6 +7149,8 @@ namespace VULKAN_HPP_NAMESPACE
}
}
DisplayKHRs( std::nullptr_t ) {}
DisplayKHRs() = delete;
DisplayKHRs( DisplayKHRs const & ) = delete;
DisplayKHRs( DisplayKHRs && rhs ) = default;
@ -8608,6 +8616,8 @@ namespace VULKAN_HPP_NAMESPACE
}
}
Pipelines( std::nullptr_t ) {}
Pipelines() = delete;
Pipelines( Pipelines const & ) = delete;
Pipelines( Pipelines && rhs ) = default;
@ -10308,6 +10318,8 @@ namespace VULKAN_HPP_NAMESPACE
}
}
SwapchainKHRs( std::nullptr_t ) {}
SwapchainKHRs() = delete;
SwapchainKHRs( SwapchainKHRs const & ) = delete;
SwapchainKHRs( SwapchainKHRs && rhs ) = default;