From d3f062dd685540ed69b7ebc7d4ea348e589cec79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Tue, 7 May 2024 13:45:58 +0200 Subject: [PATCH] Change default for template non-type parameter value of struct CppType from 0 to Type{}. (#1868) --- README.md | 2 +- VulkanHppGenerator.cpp | 2 +- vulkan/vulkan.hpp | 2 +- vulkan/vulkansc.hpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 088f191..a17d25d 100644 --- a/README.md +++ b/README.md @@ -870,7 +870,7 @@ When this is defined before including `vulkan.hpp`, you essentially disable all * the helper class `vk::StructureChain` for compile-time construction of structure chains. If this is not defined, you additionally get: -* enhanced versions of the commands (consuming `vk::ArrayProxy<>`, simplifying handling of array data; returning requested data; throwing exceptions on errors (as long as `VULKAN_HPP_NO_EXCEPTIONS` is not defined); +* enhanced versions of the commands (consuming `vk::ArrayProxy<>`), simplifying handling of array data; returning requested data; throwing exceptions on errors (as long as `VULKAN_HPP_NO_EXCEPTIONS` is not defined); * enhanced structure constructors (as long as `VULKAN_HPP_NO_STRUCT_CONSTRUCTORS` is not defined) (consuming `vk::ArrayProxyNoTemporaries<>`); * enhanced setter functions on some members of structs (consuming `vk::ArrayProxyNoTemporaries<>`); * the helper classes `vk::ArrayProxy<>` and `vk::ArrayProxyNoTemporaries<>` diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 175a08b..fc370bc 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -466,7 +466,7 @@ ${PoolFree} #endif // !VULKAN_HPP_NO_SMART_HANDLE ${baseTypes} - template + template struct CppType {}; } // namespace VULKAN_HPP_NAMESPACE diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index cda2a9b..e37eb57 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -6144,7 +6144,7 @@ namespace VULKAN_HPP_NAMESPACE using RemoteAddressNV = void *; using SampleMask = uint32_t; - template + template struct CppType { }; diff --git a/vulkan/vulkansc.hpp b/vulkan/vulkansc.hpp index fd53834..2da3a86 100644 --- a/vulkan/vulkansc.hpp +++ b/vulkan/vulkansc.hpp @@ -3392,7 +3392,7 @@ namespace VULKAN_HPP_NAMESPACE using RemoteAddressNV = void *; using SampleMask = uint32_t; - template + template struct CppType { };