
26 May
2017
26 May
'17
12:22 p.m.
Andrzej Krzemienski wrote:
Maybe no-one uses expected<T> as function parameter, but consider this:
expected
g() { vector<T> v; // try to populate v; return v; // are you expecting a copy elision here? }
This should move (subject to a clarification in the core language though.)