On Monday, 15 May 2017 at 21:38:52 UTC, Yuxuan Shui wrote:
Suppose I have a

struct A {
  @disable this(this);
} x;

How do I append it into an array?

Do I have to do

array.length++;
moveEmplace(x, array[$-1]);

?

moveEmplace is for moving an initialized object into an uninitialized one. Use the two-argument move() function:

move(x, array[$-1]);

Reply via email to