From 7135c7e1a31a0d5aef1945274f1c0c2ebda31041 Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Thu, 3 Feb 2022 17:34:43 +0100 Subject: [PATCH] Remove the 'allFlags' from the general FlagTraits struct to catch unintentional usage with something different than a supported FlagBitsType. --- VulkanHppGenerator.cpp | 7 +------ vulkan/vulkan.hpp | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 34a05a0..48cf034 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -16791,12 +16791,7 @@ int main( int argc, char ** argv ) static const std::string classFlags = R"( template struct FlagTraits - { - enum - { - allFlags = 0 - }; - }; + {}; template class Flags diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index 400bdbe..b666f72 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -640,12 +640,7 @@ namespace VULKAN_HPP_NAMESPACE template struct FlagTraits - { - enum - { - allFlags = 0 - }; - }; + {}; template class Flags