KhronosGroup / Vulkan-Hpp

Open-Source Vulkan C++ API
Apache License 2.0
3.08k stars 304 forks source link

vk::StructureChain has deleted move assignment #1946

Closed qbojj closed 2 weeks ago

qbojj commented 3 weeks ago

The vk::StructureChain has deleted move assignment even when it has defined move construction. Is this intended? And if so, why?

asuessenbach commented 3 weeks ago

You're right, this is an inconsistency, and it's not intended. In fact, as none of those structures will ever hold dynamic storage, the move constructor of the vk::StructureChain doesn't give you anything beyond the plain copy construction. Therefore, the move constructor will be removed.

asuessenbach commented 2 weeks ago

Resolved by #1949.