Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.15k stars 516 forks source link

std::optional error #219

Closed lukasino1214 closed 3 years ago

lukasino1214 commented 3 years ago

Hi. I am following tutorial. My IDE throwing error qualified name is not allowed. On line with std::optional<uint32_t> graphicsFamily;. Can you help me with it?

Thanks

image image

Krenodeno commented 3 years ago

Hi ! You need to set your compiler to C++17 standard.

lukasino1214 commented 3 years ago

Thanks! It was problem with extensions in VSCode it was set to gnu++14. Now it´s Failed to open file!. I don´t know what file failed to open.