mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-26 22:00:08 +00:00
Replace usage of std::forward_as_tuple by std::tie. (#501)
This commit is contained in:
parent
8c9e881dfe
commit
4d53dac22b
@ -5057,7 +5057,7 @@ int main(int argc, char **argv)
|
|||||||
template<typename ClassTypeA, typename ClassTypeB, typename ...ClassTypes>
|
template<typename ClassTypeA, typename ClassTypeB, typename ...ClassTypes>
|
||||||
std::tuple<ClassTypeA&, ClassTypeB&, ClassTypes&...> get()
|
std::tuple<ClassTypeA&, ClassTypeB&, ClassTypes&...> get()
|
||||||
{
|
{
|
||||||
return std::forward_as_tuple(get<ClassTypeA>(), get<ClassTypeB>(), get<ClassTypes>()...);
|
return std::tie(get<ClassTypeA>(), get<ClassTypeB>(), get<ClassTypes>()...);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename ClassType>
|
template<typename ClassType>
|
||||||
|
@ -535,7 +535,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
template<typename ClassTypeA, typename ClassTypeB, typename ...ClassTypes>
|
template<typename ClassTypeA, typename ClassTypeB, typename ...ClassTypes>
|
||||||
std::tuple<ClassTypeA&, ClassTypeB&, ClassTypes&...> get()
|
std::tuple<ClassTypeA&, ClassTypeB&, ClassTypes&...> get()
|
||||||
{
|
{
|
||||||
return std::forward_as_tuple(get<ClassTypeA>(), get<ClassTypeB>(), get<ClassTypes>()...);
|
return std::tie(get<ClassTypeA>(), get<ClassTypeB>(), get<ClassTypes>()...);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename ClassType>
|
template<typename ClassType>
|
||||||
|
Loading…
Reference in New Issue
Block a user