3 ms·
Yes, in C++17, RVO would fix the issue. Alas, some of us are stuck with project conventions that have not reached "use C++17". Without RVO, there's an extra cop
by PaulDavisThe1st 5y ago
Yes, in C++17, RVO would fix the issue. Alas, some of us are stuck with project conventions that have not reached "use C++17". Without RVO, there's an extra copy.
- masklinn 5y agoRVO is not new in C++17 though, only the standard requiring it in some cases. Unless your compiler is truly ancient odds are good it RVOs just fine no?