The way I'd do it is:

S s;

auto heap = new S;

*heap = s;


that should work.

Reply via email to