mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
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:
parent
e0eb94e848
commit
b563641fa6
@ -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
Loading…
Reference in New Issue
Block a user