Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions std/algorithm/mutation.d
Original file line number Diff line number Diff line change
Expand Up @@ -1411,8 +1411,8 @@ void moveEmplace(T)(ref T source, ref T target) @system
memset(&source, 0, sz);
else
{
auto init = typeid(T).initializer();
memcpy(&source, init.ptr, sz);
const init = T.init;
memcpy(&source, &init, sz);
}
}
}
Expand Down