mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-08 13:40:08 +00:00
fix: include <algorithm>
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
This commit is contained in:
parent
3740f14c38
commit
5a8532b0f7
@ -14,6 +14,7 @@
|
||||
|
||||
#include "VulkanHppGenerator.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <fstream>
|
||||
#include <regex>
|
||||
|
Loading…
Reference in New Issue
Block a user