File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
regression-tests/test-results Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ auto issue_869::_destroy() & -> void{
321
321
_discriminator = -1 ;
322
322
}
323
323
324
- issue_869::~issue_869 () noexcept {CPP2_UFCS ( _destroy)((* this ) );static_cast <void >(std::move ((*this )));}
324
+ issue_869::~issue_869 () noexcept {_destroy ( );static_cast <void >(std::move ((*this )));}
325
325
issue_869::issue_869 (){}
326
326
issue_869::issue_869 (issue_869 const & that)
327
327
: _storage{ }
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ if (_discriminator == 1) {std::destroy_at(reinterpret_cast<cpp2::i32*>(&_storage
102
102
_discriminator = -1 ;
103
103
}
104
104
105
- name_or_number::~name_or_number () noexcept {CPP2_UFCS ( _destroy)((* this ) );static_cast <void >(std::move ((*this )));}
105
+ name_or_number::~name_or_number () noexcept {_destroy ( );static_cast <void >(std::move ((*this )));}
106
106
name_or_number::name_or_number (){}
107
107
name_or_number::name_or_number (name_or_number const & that)
108
108
: _storage{ }
@@ -158,7 +158,7 @@ template <typename T> auto name_or_other<T>::_destroy() & -> void{
158
158
_discriminator = -1 ;
159
159
}
160
160
161
- template <typename T> name_or_other<T>::~name_or_other () noexcept {CPP2_UFCS ( _destroy)((* this ) );static_cast <void >(std::move ((*this )));}
161
+ template <typename T> name_or_other<T>::~name_or_other () noexcept {_destroy ( );static_cast <void >(std::move ((*this )));}
162
162
template <typename T> name_or_other<T>::name_or_other(){}
163
163
template <typename T> name_or_other<T>::name_or_other(name_or_other const & that)
164
164
: _storage{ }
Original file line number Diff line number Diff line change @@ -1682,7 +1682,7 @@ std::string destroy = " private _destroy: (inout this) = {\n";
1682
1682
1683
1683
// Add the destructor
1684
1684
#line 1199 "reflect.h2"
1685
- CPP2_UFCS (add_member)(t, " operator=: (move this) = { this. _destroy(); _ = this; }" );
1685
+ CPP2_UFCS (add_member)(t, " operator=: (move this) = { _destroy(); _ = this; }" );
1686
1686
1687
1687
// Add default constructor
1688
1688
CPP2_UFCS (add_member)(t, " operator=: (out this) = { }" );
Original file line number Diff line number Diff line change @@ -1196,7 +1196,7 @@ union: (inout t : meta::type_declaration)
1196
1196
}
1197
1197
1198
1198
// Add the destructor
1199
- t.add_member( " operator=: (move this) = { this. _destroy(); _ = this; }" );
1199
+ t.add_member( " operator=: (move this) = { _destroy(); _ = this; }" );
1200
1200
1201
1201
// Add default constructor
1202
1202
t.add_member( " operator=: (out this) = { }" );
You can’t perform that action at this time.
0 commit comments