@@ -62,7 +62,7 @@ namespace std {
62
62
constexpr variant_alternative_t<I, variant>& emplace(Args&&...); // constexpr since c++20
63
63
64
64
template <size_t I, class U, class... Args>
65
- constexpr variant_alternative_t<I, variant>&
65
+ constexpr variant_alternative_t<I, variant>&
66
66
emplace(initializer_list<U>, Args&&...); // constexpr since c++20
67
67
68
68
// 20.7.2.5, value status
@@ -673,7 +673,7 @@ union _LIBCPP_TEMPLATE_VIS __union;
673
673
template <_Trait _DestructibleTrait, size_t _Index>
674
674
union _LIBCPP_TEMPLATE_VIS __union<_DestructibleTrait, _Index> {};
675
675
676
- # define _LIBCPP_VARIANT_UNION (destructible_trait, destructor ) \
676
+ # define _LIBCPP_VARIANT_UNION (destructible_trait, destructor_definition ) \
677
677
template <size_t _Index, class _Tp , class ... _Types> \
678
678
union _LIBCPP_TEMPLATE_VIS __union<destructible_trait, _Index, _Tp, _Types...> { \
679
679
public: \
@@ -691,7 +691,7 @@ union _LIBCPP_TEMPLATE_VIS __union<_DestructibleTrait, _Index> {};
691
691
_LIBCPP_HIDE_FROM_ABI __union (__union&&) = default ; \
692
692
_LIBCPP_HIDE_FROM_ABI __union& operator =(const __union&) = default ; \
693
693
_LIBCPP_HIDE_FROM_ABI __union& operator =(__union&&) = default ; \
694
- destructor \
694
+ destructor_definition \
695
695
\
696
696
private : char __dummy; \
697
697
__alt<_Index, _Tp> __head; \
@@ -746,7 +746,7 @@ protected:
746
746
template <class _Traits , _Trait = _Traits::__destructible_trait>
747
747
class _LIBCPP_TEMPLATE_VIS __dtor;
748
748
749
- # define _LIBCPP_VARIANT_DESTRUCTOR (destructible_trait, destructor , destroy ) \
749
+ # define _LIBCPP_VARIANT_DESTRUCTOR (destructible_trait, destructor_definition , destroy ) \
750
750
template <class ... _Types> \
751
751
class _LIBCPP_TEMPLATE_VIS __dtor<__traits<_Types...>, destructible_trait> \
752
752
: public __base<destructible_trait, _Types...> { \
@@ -760,7 +760,7 @@ class _LIBCPP_TEMPLATE_VIS __dtor;
760
760
_LIBCPP_HIDE_FROM_ABI __dtor (__dtor&&) = default; \
761
761
_LIBCPP_HIDE_FROM_ABI __dtor& operator =(const __dtor&) = default ; \
762
762
_LIBCPP_HIDE_FROM_ABI __dtor& operator =(__dtor&&) = default ; \
763
- destructor \
763
+ destructor_definition \
764
764
\
765
765
protected : destroy \
766
766
}
@@ -821,7 +821,7 @@ protected:
821
821
template <class _Traits , _Trait = _Traits::__move_constructible_trait>
822
822
class _LIBCPP_TEMPLATE_VIS __move_constructor;
823
823
824
- # define _LIBCPP_VARIANT_MOVE_CONSTRUCTOR (move_constructible_trait, move_constructor ) \
824
+ # define _LIBCPP_VARIANT_MOVE_CONSTRUCTOR (move_constructible_trait, move_constructor_definition ) \
825
825
template <class ... _Types> \
826
826
class _LIBCPP_TEMPLATE_VIS __move_constructor<__traits<_Types...>, move_constructible_trait> \
827
827
: public __ctor<__traits<_Types...>> { \
@@ -835,7 +835,7 @@ class _LIBCPP_TEMPLATE_VIS __move_constructor;
835
835
_LIBCPP_HIDE_FROM_ABI ~__move_constructor () = default ; \
836
836
_LIBCPP_HIDE_FROM_ABI __move_constructor& operator =(const __move_constructor&) = default ; \
837
837
_LIBCPP_HIDE_FROM_ABI __move_constructor& operator =(__move_constructor&&) = default ; \
838
- move_constructor \
838
+ move_constructor_definition \
839
839
}
840
840
841
841
_LIBCPP_VARIANT_MOVE_CONSTRUCTOR (
@@ -857,7 +857,7 @@ _LIBCPP_VARIANT_MOVE_CONSTRUCTOR(
857
857
template <class _Traits , _Trait = _Traits::__copy_constructible_trait>
858
858
class _LIBCPP_TEMPLATE_VIS __copy_constructor;
859
859
860
- # define _LIBCPP_VARIANT_COPY_CONSTRUCTOR (copy_constructible_trait, copy_constructor ) \
860
+ # define _LIBCPP_VARIANT_COPY_CONSTRUCTOR (copy_constructible_trait, copy_constructor_definition ) \
861
861
template <class ... _Types> \
862
862
class _LIBCPP_TEMPLATE_VIS __copy_constructor<__traits<_Types...>, copy_constructible_trait> \
863
863
: public __move_constructor<__traits<_Types...>> { \
@@ -871,7 +871,7 @@ class _LIBCPP_TEMPLATE_VIS __copy_constructor;
871
871
_LIBCPP_HIDE_FROM_ABI ~__copy_constructor () = default ; \
872
872
_LIBCPP_HIDE_FROM_ABI __copy_constructor& operator =(const __copy_constructor&) = default ; \
873
873
_LIBCPP_HIDE_FROM_ABI __copy_constructor& operator =(__copy_constructor&&) = default ; \
874
- copy_constructor \
874
+ copy_constructor_definition \
875
875
}
876
876
877
877
_LIBCPP_VARIANT_COPY_CONSTRUCTOR (_Trait::_TriviallyAvailable,
@@ -946,7 +946,7 @@ protected:
946
946
template <class _Traits , _Trait = _Traits::__move_assignable_trait>
947
947
class _LIBCPP_TEMPLATE_VIS __move_assignment;
948
948
949
- # define _LIBCPP_VARIANT_MOVE_ASSIGNMENT (move_assignable_trait, move_assignment ) \
949
+ # define _LIBCPP_VARIANT_MOVE_ASSIGNMENT (move_assignable_trait, move_assignment_definition ) \
950
950
template <class ... _Types> \
951
951
class _LIBCPP_TEMPLATE_VIS __move_assignment<__traits<_Types...>, move_assignable_trait> \
952
952
: public __assignment<__traits<_Types...>> { \
@@ -960,7 +960,7 @@ class _LIBCPP_TEMPLATE_VIS __move_assignment;
960
960
_LIBCPP_HIDE_FROM_ABI __move_assignment (__move_assignment&&) = default; \
961
961
_LIBCPP_HIDE_FROM_ABI ~__move_assignment () = default ; \
962
962
_LIBCPP_HIDE_FROM_ABI __move_assignment& operator =(const __move_assignment&) = default ; \
963
- move_assignment \
963
+ move_assignment_definition \
964
964
}
965
965
966
966
_LIBCPP_VARIANT_MOVE_ASSIGNMENT (_Trait::_TriviallyAvailable,
@@ -985,7 +985,7 @@ _LIBCPP_VARIANT_MOVE_ASSIGNMENT(
985
985
template <class _Traits , _Trait = _Traits::__copy_assignable_trait>
986
986
class _LIBCPP_TEMPLATE_VIS __copy_assignment;
987
987
988
- # define _LIBCPP_VARIANT_COPY_ASSIGNMENT (copy_assignable_trait, copy_assignment ) \
988
+ # define _LIBCPP_VARIANT_COPY_ASSIGNMENT (copy_assignable_trait, copy_assignment_definition ) \
989
989
template <class ... _Types> \
990
990
class _LIBCPP_TEMPLATE_VIS __copy_assignment<__traits<_Types...>, copy_assignable_trait> \
991
991
: public __move_assignment<__traits<_Types...>> { \
@@ -999,7 +999,7 @@ class _LIBCPP_TEMPLATE_VIS __copy_assignment;
999
999
_LIBCPP_HIDE_FROM_ABI __copy_assignment (__copy_assignment&&) = default; \
1000
1000
_LIBCPP_HIDE_FROM_ABI ~__copy_assignment () = default ; \
1001
1001
_LIBCPP_HIDE_FROM_ABI __copy_assignment& operator =(__copy_assignment&&) = default ; \
1002
- copy_assignment \
1002
+ copy_assignment_definition \
1003
1003
}
1004
1004
1005
1005
_LIBCPP_VARIANT_COPY_ASSIGNMENT (_Trait::_TriviallyAvailable,
0 commit comments