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:
Stephan Seitz 2022-03-17 09:55:55 +01:00
parent 3740f14c38
commit 5a8532b0f7

View File

@ -14,6 +14,7 @@
#include "VulkanHppGenerator.hpp" #include "VulkanHppGenerator.hpp"
#include <algorithm>
#include <cassert> #include <cassert>
#include <fstream> #include <fstream>
#include <regex> #include <regex>