From b73dca4eefd092b8279aa5dc361f3604efcaa3d5 Mon Sep 17 00:00:00 2001 From: Emmankoko Date: Thu, 22 Aug 2024 07:29:37 +0000 Subject: [PATCH] destory, emplace new object in address, return --- source/stdcpp/list.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/stdcpp/list.d b/source/stdcpp/list.d index db9304d..b467b73 100644 --- a/source/stdcpp/list.d +++ b/source/stdcpp/list.d @@ -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; } ///