diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2018-02-06 20:56:55 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2018-02-06 20:56:55 +0000 |
| commit | 655c4695cfe3224e514b357773efee77b16d9afb (patch) | |
| tree | e16ca57c1cb7cd1e9462c2b725309d821d706a0e /libcxx/include/tuple | |
| parent | e96a9014ab3217f18e7d2646efe764cebbb3f7cd (diff) | |
| download | bcm5719-llvm-655c4695cfe3224e514b357773efee77b16d9afb.tar.gz bcm5719-llvm-655c4695cfe3224e514b357773efee77b16d9afb.zip | |
Implement P0777: Treating unnecessay decay
llvm-svn: 324398
Diffstat (limited to 'libcxx/include/tuple')
| -rw-r--r-- | libcxx/include/tuple | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/include/tuple b/libcxx/include/tuple index 2e19f7ca8e9..b3a17e7b735 100644 --- a/libcxx/include/tuple +++ b/libcxx/include/tuple @@ -211,7 +211,7 @@ public: template <class _Tp, class = typename enable_if< __lazy_and< - __lazy_not<is_same<typename decay<_Tp>::type, __tuple_leaf>> + __lazy_not<is_same<typename __uncvref<_Tp>::type, __tuple_leaf>> , is_constructible<_Hp, _Tp> >::value >::type @@ -293,7 +293,7 @@ public: template <class _Tp, class = typename enable_if< __lazy_and< - __lazy_not<is_same<typename decay<_Tp>::type, __tuple_leaf>> + __lazy_not<is_same<typename __uncvref<_Tp>::type, __tuple_leaf>> , is_constructible<_Hp, _Tp> >::value >::type @@ -1383,7 +1383,7 @@ constexpr decltype(auto) apply(_Fn && __f, _Tuple && __t) _LIBCPP_NOEXCEPT_RETURN( _VSTD::__apply_tuple_impl( _VSTD::forward<_Fn>(__f), _VSTD::forward<_Tuple>(__t), - typename __make_tuple_indices<tuple_size_v<decay_t<_Tuple>>>::type{}) + typename __make_tuple_indices<tuple_size_v<remove_reference_t<_Tuple>>>::type{}) ) template <class _Tp, class _Tuple, size_t... _Idx> @@ -1398,7 +1398,7 @@ inline _LIBCPP_INLINE_VISIBILITY constexpr _Tp make_from_tuple(_Tuple&& __t) _LIBCPP_NOEXCEPT_RETURN( _VSTD::__make_from_tuple_impl<_Tp>(_VSTD::forward<_Tuple>(__t), - typename __make_tuple_indices<tuple_size_v<decay_t<_Tuple>>>::type{}) + typename __make_tuple_indices<tuple_size_v<remove_reference_t<_Tuple>>>::type{}) ) #undef _LIBCPP_NOEXCEPT_RETURN |

