Skip to content

Commit

Permalink
destory, emplace new object in address, return
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmankoko committed Aug 22, 2024
1 parent a305697 commit b73dca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/stdcpp/list.d
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ extern(C++, class) struct list(Type, Allocator)
{
import core.lifetime : emplace;

desroy!false(this);
emplace(&this, object);
destroy!false(this);
emplace!(list)(&this, other);
return this;
}
///
Expand Down

0 comments on commit b73dca4

Please sign in to comment.