forked from boostorg/unordered
added workaround for GCC<=5 having problems with return {...} syntax
This commit is contained in:
@ -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>
|
||||||
|
Reference in New Issue
Block a user