Introduce explicit default construction on nullptr_t for vector-based raii-classes.

This commit is contained in:
asuessenbach 2022-02-16 09:51:18 +01:00
parent 083c13a33f
commit 782c4aa46c
2 changed files with 13 additions and 0 deletions

View File

@ -7013,6 +7013,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;