added workaround for GCC<=5 having problems with return {...} syntax

This commit is contained in:
joaquintides
2023-04-13 19:31:20 +02:00
parent ab84a922cf
commit 0e5ef25a69

View File

@ -24,8 +24,12 @@ auto tuple_rotate_right_aux(mp11::index_sequence<Is...>,Tuple&& x)
std::get<(Is+sizeof...(Is)-1)%sizeof...(Is)>(std::forward<Tuple>(x)))... std::get<(Is+sizeof...(Is)-1)%sizeof...(Is)>(std::forward<Tuple>(x)))...
> >
{ {
return { return std::tuple<decltype(
std::get<(Is+sizeof...(Is)-1)%sizeof...(Is)>(std::forward<Tuple>(x))...}; std::get<(Is+sizeof...(Is)-1)%sizeof...(Is)>(std::forward<Tuple>(x)))...
>
{
std::get<(Is+sizeof...(Is)-1)%sizeof...(Is)>(std::forward<Tuple>(x))...
};
} }
template<typename Tuple> template<typename Tuple>