Struct beeing moved around
so
so at so.so
Fri May 20 08:43:46 PDT 2011
On Fri, 20 May 2011 17:30:33 +0300, Sean Kelly <sean at invisibleduck.org>
wrote:
> In main above you're declaring a new struct variable t which is
> default-constructed, then a temporary is created and initialized to 5,
> and then the temporary is copied onto t. It does seem like a postblit
> should probably occur in this scenario though.
I am confused.
There shouldn't be any copying, it is construction.
More information about the Digitalmars-d
mailing list