[Issue 19904] move semantics fail through the `emplace` pipeline

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 27 20:37:39 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19904

--- Comment #3 from kinke at gmx.net ---
Ah, due to this rval->lval conversion when calling an `auto ref` function, the
ctor is called with an lvalue arg, even if the emplace-arg was originally an
rvalue, and that then leads to a superfluous copy (and later destruction)
instead of a move at that end of the chain.

--


More information about the Digitalmars-d-bugs mailing list