@@ -392,8 +392,6 @@ public:
392
392
393
393
template <size_t _Ip, class _Hp >
394
394
class __tuple_leaf <_Ip, _Hp, true > : private __remove_cv_t <_Hp> {
395
- typedef __remove_cv_t <_Hp> _BaseT;
396
-
397
395
public:
398
396
_LIBCPP_CONSTEXPR_SINCE_CXX14 __tuple_leaf& operator =(const __tuple_leaf&) = delete ;
399
397
@@ -404,29 +402,29 @@ public:
404
402
405
403
template <class _Alloc >
406
404
_LIBCPP_HIDE_FROM_ABI constexpr __tuple_leaf (integral_constant<int , 1 >, const _Alloc& __a)
407
- : _BaseT (allocator_arg_t (), __a) {}
405
+ : _Hp (allocator_arg_t (), __a) {}
408
406
409
407
template <class _Alloc >
410
- _LIBCPP_HIDE_FROM_ABI constexpr __tuple_leaf (integral_constant<int , 2 >, const _Alloc& __a) : _BaseT (__a) {}
408
+ _LIBCPP_HIDE_FROM_ABI constexpr __tuple_leaf (integral_constant<int , 2 >, const _Alloc& __a) : _Hp (__a) {}
411
409
412
410
template <class _Tp ,
413
411
__enable_if_t < _And< _IsNotSame<__remove_cvref_t <_Tp>, __tuple_leaf>, is_constructible<_Hp, _Tp> >::value,
414
412
int > = 0 >
415
413
_LIBCPP_HIDE_FROM_ABI
416
414
_LIBCPP_CONSTEXPR_SINCE_CXX14 explicit __tuple_leaf (_Tp&& __t ) noexcept (is_nothrow_constructible<_Hp, _Tp>::value)
417
- : _BaseT (std::forward<_Tp>(__t )) {}
415
+ : _Hp (std::forward<_Tp>(__t )) {}
418
416
419
417
template <class _Tp , class _Alloc >
420
418
_LIBCPP_HIDE_FROM_ABI constexpr explicit __tuple_leaf (integral_constant<int , 0 >, const _Alloc&, _Tp&& __t )
421
- : _BaseT (std::forward<_Tp>(__t )) {}
419
+ : _Hp (std::forward<_Tp>(__t )) {}
422
420
423
421
template <class _Tp , class _Alloc >
424
422
_LIBCPP_HIDE_FROM_ABI constexpr explicit __tuple_leaf (integral_constant<int , 1 >, const _Alloc& __a, _Tp&& __t )
425
- : _BaseT (allocator_arg_t (), __a, std::forward<_Tp>(__t )) {}
423
+ : _Hp (allocator_arg_t (), __a, std::forward<_Tp>(__t )) {}
426
424
427
425
template <class _Tp , class _Alloc >
428
426
_LIBCPP_HIDE_FROM_ABI constexpr explicit __tuple_leaf (integral_constant<int , 2 >, const _Alloc& __a, _Tp&& __t )
429
- : _BaseT (std::forward<_Tp>(__t ), __a) {}
427
+ : _Hp (std::forward<_Tp>(__t ), __a) {}
430
428
431
429
__tuple_leaf (__tuple_leaf const &) = default ;
432
430
__tuple_leaf (__tuple_leaf&&) = default ;
@@ -538,7 +536,7 @@ __memberwise_forward_assign(_Dest& __dest, _Source&& __source, __tuple_types<_Up
538
536
539
537
template <class ... _Tp>
540
538
class _LIBCPP_TEMPLATE_VIS tuple {
541
- typedef __tuple_impl<typename __make_tuple_indices<sizeof ...(_Tp)>::type, __remove_cv_t < _Tp> ...> _BaseT;
539
+ typedef __tuple_impl<typename __make_tuple_indices<sizeof ...(_Tp)>::type, _Tp...> _BaseT;
542
540
543
541
_BaseT __base_;
544
542
0 commit comments