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

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