Why cant I place a stuct on a funciton stack without blitting it
monarch_dodra
monarchdodra at gmail.com
Sat Apr 5 10:42:53 PDT 2014
On Saturday, 5 April 2014 at 15:40:13 UTC, Byron wrote:
> auto tans = Tans(...); /// calls destructor on the blit?
This does NOT call postblit nor destructor. It's an actual
declaration syntax.
> auto tans = Tans.init;
Will not call postblit either.
Finally:
> auto tans = makeTans(args...);
is guaranteed (by spec) to not call postblit if "makeTans"
qualifies for [N]RVO.
More information about the Digitalmars-d-learn
mailing list