Merge pull request #1058 from asuessenbach/constexpr

Remove constexpr specifier from defaulted struct assignment operators.
This commit is contained in:
Andreas Süßenbach 2021-09-01 11:15:23 +02:00 committed by GitHub
commit 2840a8cd3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 847 additions and 1076 deletions

View File

@ -11442,7 +11442,7 @@ std::string
std::string const & prefix ) const
{
static const std::string assignmentFromVulkanType = R"(
${prefix}${constexpr_assign}${structName} & operator=( ${structName} const & rhs ) VULKAN_HPP_NOEXCEPT = default;
${prefix}${structName} & operator=( ${structName} const & rhs ) VULKAN_HPP_NOEXCEPT = default;
${prefix}${structName} & operator=( Vk${structName} const & rhs ) VULKAN_HPP_NOEXCEPT
${prefix}{
@ -11451,9 +11451,7 @@ ${prefix} return *this;
${prefix}}
)";
return replaceWithMap( assignmentFromVulkanType,
{ { "constexpr_assign", generateConstexprString( structData, true ) },
{ "prefix", prefix },
{ "structName", stripPrefix( structData.first, "Vk" ) } } );
{ { "prefix", prefix }, { "structName", stripPrefix( structData.first, "Vk" ) } } );
}
std::string

File diff suppressed because it is too large Load Diff