For example: I'm using vk::Buffer in the standard layout structure(it shouldn't have any constructors, including move-constructor) so I can actively use designated initializers.
Something like this:
Of course vkDestroyBuffer is getting called during emplace_back(std::move(vbuff)) with valid buffer handle.
Wouldn't it be more intuitive to implement move semantics for handles with something like this?
For example: I'm using
vk::Buffer
in the standard layout structure(it shouldn't have any constructors, including move-constructor) so I can actively use designated initializers. Something like this:Of course
vkDestroyBuffer
is getting called duringemplace_back(std::move(vbuff))
with valid buffer handle. Wouldn't it be more intuitive to implement move semantics for handles with something like this?Would you accept a PR with these changes?