Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Compilation errors with apple clang #4

Open
pvlsrv opened this issue Jan 22, 2020 · 2 comments
Open

Compilation errors with apple clang #4

pvlsrv opened this issue Jan 22, 2020 · 2 comments

Comments

@pvlsrv
Copy link

pvlsrv commented Jan 22, 2020

When trying to compile this with apple clang 11 I get compilation errors:
explicit specialization of 'vk::FlagTraitsvma::AllocationCreateFlagBits' after instantiation
explicit specialization of 'vk::FlagTraitsvma::AllocatorCreateFlagBits' after instantiation
explicit specialization of 'vk::FlagTraitsvma::PoolCreateFlagBits' after instantiation
explicit specialization of 'vk::FlagTraitsvma::RecordFlagBits' after instantiation

It's fixed by moving the explicit specializations up to just below the enum definition of the FlagBits.
Patched file attached.

vk_mem_alloc.hpp.zip

@AlexJustRandom
Copy link

AlexJustRandom commented Apr 12, 2021

same errors as above on gcc
thanks @pvlsrv for your patch

@TheJackiMonster
Copy link
Contributor

It also works for me to just remove the explicit specializations from the file. ^^'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants