Change default for template non-type parameter value of struct CppType from 0 to Type{}. (#1868)

This commit is contained in:
Andreas Süßenbach 2024-05-07 13:45:58 +02:00 committed by GitHub
parent 8d46db6965
commit d3f062dd68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -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<>`

View File

@ -466,7 +466,7 @@ ${PoolFree}
#endif // !VULKAN_HPP_NO_SMART_HANDLE
${baseTypes}
template <typename Type, Type value = 0>
template <typename Type, Type value = Type{}>
struct CppType
{};
} // namespace VULKAN_HPP_NAMESPACE

View File

@ -6144,7 +6144,7 @@ namespace VULKAN_HPP_NAMESPACE
using RemoteAddressNV = void *;
using SampleMask = uint32_t;
template <typename Type, Type value = 0>
template <typename Type, Type value = Type{}>
struct CppType
{
};

View File

@ -3392,7 +3392,7 @@ namespace VULKAN_HPP_NAMESPACE
using RemoteAddressNV = void *;
using SampleMask = uint32_t;
template <typename Type, Type value = 0>
template <typename Type, Type value = Type{}>
struct CppType
{
};