mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #642 from byzin/fix-if-condition-of-result-unique-handle3
Fix if condition of result unique handle
This commit is contained in:
commit
6b72356c2a
@ -8028,7 +8028,7 @@ namespace std
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_DISABLE_IMPLICIT_RESULT_VALUE_CAST)
|
#if !defined(VULKAN_HPP_NO_SMART_HANDLE)
|
||||||
template <typename Type, typename Dispatch>
|
template <typename Type, typename Dispatch>
|
||||||
struct ResultValue<UniqueHandle<Type,Dispatch>>
|
struct ResultValue<UniqueHandle<Type,Dispatch>>
|
||||||
{
|
{
|
||||||
@ -8046,6 +8046,7 @@ namespace std
|
|||||||
|
|
||||||
operator std::tuple<Result&, UniqueHandle<Type, Dispatch>&>() VULKAN_HPP_NOEXCEPT { return std::tuple<Result&, UniqueHandle<Type, Dispatch>&>(result, value); }
|
operator std::tuple<Result&, UniqueHandle<Type, Dispatch>&>() VULKAN_HPP_NOEXCEPT { return std::tuple<Result&, UniqueHandle<Type, Dispatch>&>(result, value); }
|
||||||
|
|
||||||
|
# if !defined(VULKAN_HPP_DISABLE_IMPLICIT_RESULT_VALUE_CAST)
|
||||||
operator UniqueHandle<Type, Dispatch>& () & VULKAN_HPP_NOEXCEPT
|
operator UniqueHandle<Type, Dispatch>& () & VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
return value;
|
return value;
|
||||||
@ -8055,6 +8056,7 @@ namespace std
|
|||||||
{
|
{
|
||||||
return std::move(value);
|
return std::move(value);
|
||||||
}
|
}
|
||||||
|
# endif
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -15956,7 +15956,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !defined( VULKAN_HPP_DISABLE_IMPLICIT_RESULT_VALUE_CAST )
|
#if !defined( VULKAN_HPP_NO_SMART_HANDLE )
|
||||||
template <typename Type, typename Dispatch>
|
template <typename Type, typename Dispatch>
|
||||||
struct ResultValue<UniqueHandle<Type, Dispatch>>
|
struct ResultValue<UniqueHandle<Type, Dispatch>>
|
||||||
{
|
{
|
||||||
@ -15977,6 +15977,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
return std::tuple<Result &, UniqueHandle<Type, Dispatch> &>( result, value );
|
return std::tuple<Result &, UniqueHandle<Type, Dispatch> &>( result, value );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# if !defined( VULKAN_HPP_DISABLE_IMPLICIT_RESULT_VALUE_CAST )
|
||||||
operator UniqueHandle<Type, Dispatch> &() & VULKAN_HPP_NOEXCEPT
|
operator UniqueHandle<Type, Dispatch> &() & VULKAN_HPP_NOEXCEPT
|
||||||
{
|
{
|
||||||
return value;
|
return value;
|
||||||
@ -15986,6 +15987,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
{
|
{
|
||||||
return std::move( value );
|
return std::move( value );
|
||||||
}
|
}
|
||||||
|
# endif
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user