Skip to content

Implicit Conversions Generate Errors on 32-bit Platforms #81

@Stehsaer

Description

@Stehsaer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions