https://issues.dlang.org/show_bug.cgi?id=18984
--- Comment #6 from Manu <turkey...@gmail.com> --- > but I have not been able to > get RVO from C++ to see what happens there. I think if you build with C++14 (RVO guaranteed) and std::move the result to return value you should be able to force it. Copy elision is all bundled up in move semantics. --