summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/include/tuple2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/tuple b/libcxx/include/tuple
index 3f67ff8b72c..63ce4cc32a0 100644
--- a/libcxx/include/tuple
+++ b/libcxx/include/tuple
@@ -589,7 +589,7 @@ typename tuple_element<_Ip, tuple<_Tp...> >::type&&
get(tuple<_Tp...>&& __t)
{
typedef typename tuple_element<_Ip, tuple<_Tp...> >::type type;
- return static_cast<typename tuple_element<_Ip, tuple<_Tp...> >::type&&>(
+ return static_cast<type&&>(
static_cast<__tuple_leaf<_Ip, type>&&>(__t.base_).get());
}
OpenPOWER on IntegriCloud