From 5a8532b0f71cc88e37e5751b42d295c9dd8f2e77 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Thu, 17 Mar 2022 09:55:55 +0100 Subject: [PATCH] fix: include `` in VulkanHppGenerator.cpp This fixes the build on Clang with `-stdlib=libc++` (if you disable -Werror as there are a lot of warnings) ``` /home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:781:28: error: no member named 'find_if_not' in namespace 'std' auto endDigit = std::find_if_not( beginDigit, valueName.end(), []( std::string::value_type c ) { return isdigit( c ); } ); ~~~~~^ /home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:1261:15: error: no member named 'find_if_not' in namespace 'std' return std::find_if_not( vectorParams.begin(), ~~~~~^ /home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:2041:24: error: no member named 'find_if_not' in namespace 'std' valid = ( std::find_if_not( destructorIt->second.params.begin(), destructorIt->second.params.end(), isConstructorCandidateParam ) == ~~~~~^ /home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:2145:21: error: no member named 'find_if_not' in namespace 'std' ( std::find_if_not( sd.second.members.begin(), sd.second.members.end(), isMember ) == sd.second.members.end() ); ~~~~~^ /home/stephan/projects/Vulkan-Hpp/VulkanHppGenerator.cpp:6047:17: error: no member named 'count_if' in namespace 'std' ( std::count_if( arrayIt->type.postfix.begin(), arrayIt->type.postfix.end(), []( char c ) { return c == '*'; } ) < 2 ) ) ~~~~~^ 5 errors generated. ``` Fixes #1175 together with the optional inclusion of vulkan_hash.hpp --- VulkanHppGenerator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index ae0edbc..83e19c4 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -14,6 +14,7 @@ #include "VulkanHppGenerator.hpp" +#include #include #include #include