mirror of git://gcc.gnu.org/git/gcc.git
libstdc++/69939 Qualify get and forward
PR libstdc++/69939 * include/experimental/tuple (__apply_impl): Qualify get and forward. From-SVN: r233665
This commit is contained in:
parent
727616d536
commit
27a8a63d85
|
|
@ -1,3 +1,8 @@
|
||||||
|
2016-02-24 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
PR libstdc++/69939
|
||||||
|
* include/experimental/tuple (__apply_impl): Qualify get and forward.
|
||||||
|
|
||||||
2016-02-16 Tim Shen <timshen@google.com>
|
2016-02-16 Tim Shen <timshen@google.com>
|
||||||
|
|
||||||
Backport from mainline
|
Backport from mainline
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||||
template <typename _Fn, typename _Tuple, std::size_t... _Idx>
|
template <typename _Fn, typename _Tuple, std::size_t... _Idx>
|
||||||
constexpr decltype(auto)
|
constexpr decltype(auto)
|
||||||
__apply_impl(_Fn&& f, _Tuple&& t, std::index_sequence<_Idx...>)
|
__apply_impl(_Fn&& f, _Tuple&& t, std::index_sequence<_Idx...>)
|
||||||
{ return std::forward<_Fn>(f)(get<_Idx>(forward<_Tuple>(t))...); }
|
{
|
||||||
|
return std::forward<_Fn>(f)(std::get<_Idx>(std::forward<_Tuple>(t))...);
|
||||||
|
}
|
||||||
|
|
||||||
template <typename _Fn, typename _Tuple>
|
template <typename _Fn, typename _Tuple>
|
||||||
constexpr decltype(auto)
|
constexpr decltype(auto)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue