diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 3cf82d0..9e23746 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -10435,7 +10435,7 @@ int main( int argc, char ** argv ) template >::type, size_t Which = 0> T const & get() const VULKAN_HPP_NOEXCEPT { - return std::get::value>( static_cast&>( *this ) ); + return std::get::value>( static_cast const &>( *this ) ); } template diff --git a/tests/StructureChain/StructureChain.cpp b/tests/StructureChain/StructureChain.cpp index 5f47e98..e417122 100644 --- a/tests/StructureChain/StructureChain.cpp +++ b/tests/StructureChain/StructureChain.cpp @@ -55,7 +55,9 @@ int main( int /*argc*/, char ** /*argv*/ ) // some valid StructureChains vk::StructureChain sc0; - vk::StructureChain sc1; + const vk::StructureChain sc1; + auto pdp = sc1.get(); + unused( pdp ); vk::StructureChain sc2; vk::StructureChain sc3; vk::StructureChain::value>( - static_cast &>( *this ) ); + static_cast const &>( *this ) ); } template