Remove constexpr specifier from defaulted struct assignment operators.

Those operators are implicitly declared as constexpr, if they are constexpr-compatible.
This commit is contained in:
asuessenbach 2021-09-01 10:02:25 +02:00
parent e0eb94e848
commit b563641fa6
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