Skip to content

Commit b73dca4

Browse files
committed
destory, emplace new object in address, return
1 parent a305697 commit b73dca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/stdcpp/list.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ extern(C++, class) struct list(Type, Allocator)
335335
{
336336
import core.lifetime : emplace;
337337

338-
desroy!false(this);
339-
emplace(&this, object);
338+
destroy!false(this);
339+
emplace!(list)(&this, other);
340340
return this;
341341
}
342342
///

0 commit comments

Comments
 (0)