From 025a4f575158c24517805f46f32cfd152d72dee4 Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Tue, 14 Sep 2021 17:47:39 +0200 Subject: [PATCH] Remove wrong 'typename' from commands returning two values. --- VulkanHppGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 1e8949c..e78726b 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -3227,7 +3227,7 @@ std::string VulkanHppGenerator::generateCommandResultGetTwoValues( std::string c { std::string const functionTemplate = R"( template - ${nodiscard}VULKAN_HPP_INLINE typename ResultValue> ${className}${classSeparator}${commandName}( ${argumentList} )${const} + ${nodiscard}VULKAN_HPP_INLINE ResultValue> ${className}${classSeparator}${commandName}( ${argumentList} )${const} { VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); std::pair<${firstReturnType}, ${secondReturnType}> returnValue; @@ -3259,7 +3259,7 @@ std::string VulkanHppGenerator::generateCommandResultGetTwoValues( std::string c { std::string const functionTemplate = R"( template - ${nodiscard}typename ResultValue> ${commandName}( ${argumentList} )${const};)"; + ${nodiscard}ResultValue> ${commandName}( ${argumentList} )${const};)"; return replaceWithMap( functionTemplate, { { "argumentList", argumentList },