mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-10 14:40:07 +00:00
Change return of StructureChain::get() from tuple of values to tuple of references (#495)
Resolves #494
This commit is contained in:
parent
b6a190f4a2
commit
bca5adc12d
@ -5049,12 +5049,9 @@ int main(int argc, char **argv)
|
||||
template<typename ClassType> ClassType& get() VULKAN_HPP_NOEXCEPT { return static_cast<ClassType&>(*this);}
|
||||
|
||||
template<typename ClassTypeA, typename ClassTypeB, typename ...ClassTypes>
|
||||
std::tuple<ClassTypeA, ClassTypeB, ClassTypes...> get()
|
||||
std::tuple<ClassTypeA&, ClassTypeB&, ClassTypes&...> get()
|
||||
{
|
||||
return std::tuple_cat(
|
||||
std::make_tuple(get<ClassTypeA>(),get<ClassTypeB>()),
|
||||
std::make_tuple(get<ClassTypes>()...)
|
||||
);
|
||||
return std::forward_as_tuple(get<ClassTypeA>(), get<ClassTypeB>(), get<ClassTypes>()...);
|
||||
}
|
||||
|
||||
template<typename ClassType>
|
||||
|
@ -533,12 +533,9 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
template<typename ClassType> ClassType& get() VULKAN_HPP_NOEXCEPT { return static_cast<ClassType&>(*this);}
|
||||
|
||||
template<typename ClassTypeA, typename ClassTypeB, typename ...ClassTypes>
|
||||
std::tuple<ClassTypeA, ClassTypeB, ClassTypes...> get()
|
||||
std::tuple<ClassTypeA&, ClassTypeB&, ClassTypes&...> get()
|
||||
{
|
||||
return std::tuple_cat(
|
||||
std::make_tuple(get<ClassTypeA>(),get<ClassTypeB>()),
|
||||
std::make_tuple(get<ClassTypes>()...)
|
||||
);
|
||||
return std::forward_as_tuple(get<ClassTypeA>(), get<ClassTypeB>(), get<ClassTypes>()...);
|
||||
}
|
||||
|
||||
template<typename ClassType>
|
||||
|
Loading…
Reference in New Issue
Block a user