From 80fa34bfb5a40d1258defb48454292ab2ac80ed5 Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Tue, 20 Oct 2020 15:47:57 +0200 Subject: [PATCH] Introduce default template type for functions StructureChain::get allows auto root = structureChain.get(); instead of auto root = structureChain.get(); --- VulkanHppGenerator.cpp | 4 ++-- vulkan/vulkan.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 137f7cd..5153b55 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -10750,13 +10750,13 @@ int main( int argc, char ** argv ) StructureChain & operator=( StructureChain && rhs ) = delete; - template + template >::type, size_t Which = 0> T & get() VULKAN_HPP_NOEXCEPT { return std::get::value>( static_cast&>( *this ) ); } - template + template >::type, size_t Which = 0> T const & get() const VULKAN_HPP_NOEXCEPT { return std::get::value>( static_cast&>( *this ) ); diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index da898b4..263d0b4 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -970,14 +970,14 @@ namespace VULKAN_HPP_NAMESPACE StructureChain & operator=( StructureChain && rhs ) = delete; - template + template >::type, size_t Which = 0> T & get() VULKAN_HPP_NOEXCEPT { return std::get::value>( static_cast &>( *this ) ); } - template + template >::type, size_t Which = 0> T const & get() const VULKAN_HPP_NOEXCEPT { return std::get::value>(