Provide rvalue cast operator for ResultValue

Allows objects returned as ResultValue (instead of
ResultValueType::type) to be moved without requiring
additional casting or explicit use of ResultValue::value.

Resolves #589
This commit is contained in:
Alexandros Frantzis
2020-05-01 15:11:26 +03:00
parent 94c33a5e2c
commit 18da9fdcfd
4 changed files with 86 additions and 0 deletions

View File

@@ -15864,6 +15864,11 @@ namespace VULKAN_HPP_NAMESPACE
{
return value;
}
operator T &&() && VULKAN_HPP_NOEXCEPT
{
return std::move( value );
}
#endif
};