Context & Description
When updating VulkanMemoryAllocator-Hpp on a third-party package manager xrepo, compilation errors are found in CI checks for all 32-bit platforms. They are caused by unavailable implicit conversions that convert vma::XXX into VmaXXX, on 32-bit platforms where vulkan-hpp (by default) disabled "type-safe conversion" and brings explicit specifier on conversion operators (e.g. vma::Allocator::operator VmaAllocator()).
See xmake-io/xmake-repo#9062 (comment) for original conversation
Suggested Fix
Use static_cast to make the conversions explicit.
Context & Description
When updating
VulkanMemoryAllocator-Hppon a third-party package managerxrepo, compilation errors are found in CI checks for all 32-bit platforms. They are caused by unavailable implicit conversions that convertvma::XXXintoVmaXXX, on 32-bit platforms wherevulkan-hpp(by default) disabled "type-safe conversion" and bringsexplicitspecifier on conversion operators (e.g.vma::Allocator::operator VmaAllocator()).Suggested Fix
Use
static_castto make the conversions explicit.