Commit 1027d22f authored by Paul's avatar Paul
Browse files

Add workaround for gcc 5

parent b2cb64e7
...@@ -65,10 +65,13 @@ wrapper<T> wrap(std::remove_reference_t<T>& x) ...@@ -65,10 +65,13 @@ wrapper<T> wrap(std::remove_reference_t<T>& x)
return wrapper<T>{std::forward<T>(x)}; return wrapper<T>{std::forward<T>(x)};
} }
template<class... Ts>
using auto_tuple_t = std::tuple<typename remove_rvalue_reference<Ts>::type...>;
template <class... Ts> template <class... Ts>
std::tuple<typename remove_rvalue_reference<Ts>::type...> auto_tuple(Ts&&... xs) auto_tuple_t<Ts...> auto_tuple(Ts&&... xs)
{ {
return {std::forward<Ts>(xs)...}; return auto_tuple_t<Ts...>{std::forward<Ts>(xs)...};
} }
} // namespace detail } // namespace detail
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment