From 0e5ef25a69d5e67ca838e039bb11f2d55930c2b2 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Thu, 13 Apr 2023 19:31:20 +0200 Subject: [PATCH] added workaround for GCC<=5 having problems with return {...} syntax --- include/boost/unordered/detail/foa/tuple_rotate_right.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/boost/unordered/detail/foa/tuple_rotate_right.hpp b/include/boost/unordered/detail/foa/tuple_rotate_right.hpp index c63a7fb5..2774cbbb 100644 --- a/include/boost/unordered/detail/foa/tuple_rotate_right.hpp +++ b/include/boost/unordered/detail/foa/tuple_rotate_right.hpp @@ -24,8 +24,12 @@ auto tuple_rotate_right_aux(mp11::index_sequence,Tuple&& x) std::get<(Is+sizeof...(Is)-1)%sizeof...(Is)>(std::forward(x)))... > { - return { - std::get<(Is+sizeof...(Is)-1)%sizeof...(Is)>(std::forward(x))...}; + return std::tuple(std::forward(x)))... + > + { + std::get<(Is+sizeof...(Is)-1)%sizeof...(Is)>(std::forward(x))... + }; } template