Re:The Sad Truth About C++ Copy Elision
by rualca on Saturday April 03, 2021 @04:12PM
(#26684335)
> Having a temporary variable to make code more readable is hardly a 'clever thing'
Right, but if you're sprinkling your code with temp variables, specially with a language such as C++ where copy elision is far from ensured, then you're already not averse to the idea of instantiating variables left and right.
Right, but if you're sprinkling your code with temp variables, specially with a language such as C++ where copy elision is far from ensured, then you're already not averse to the idea of instantiating variables left and right.