mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
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)))...
|
||||
>
|
||||
{
|
||||
return {
|
||||
std::get<(Is+sizeof...(Is)-1)%sizeof...(Is)>(std::forward<Tuple>(x))...};
|
||||
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))...
|
||||
};
|
||||
}
|
||||
|
||||
template<typename Tuple>
|
||||
|
Reference in New Issue
Block a user