malte-v / VulkanMemoryAllocator-Hpp

C++ bindings for VulkanMemoryAllocator
Creative Commons Zero v1.0 Universal
35 stars 42 forks source link

Compilation errors with apple clang #4

Open pvlsrv opened 4 years ago

pvlsrv commented 4 years ago

When trying to compile this with apple clang 11 I get compilation errors: explicit specialization of 'vk::FlagTraits' after instantiation explicit specialization of 'vk::FlagTraits' after instantiation explicit specialization of 'vk::FlagTraits' after instantiation explicit specialization of 'vk::FlagTraits' 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 commented 3 years ago

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

TheJackiMonster commented 3 years ago

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