A new WG21 paper is available. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.
Document number: N3538
Date: 2013-03-06
Pass by Const Reference or Value
by Lawrence Crowl
Excerpt:
Efficiency and expressiveness are hallmarks of C++, but sometimes those hallmarks conflict in ways that force programmers to compromise on one or the other. The progammer's choice of passing a given argument by const reference or by value is one of those compromises. That compromise has become more of a problem with modern calling conventions.
In this paper, we describe the problem, discuss possible approaches to reduce the problem, and explore a solution that introduces a new language feature...
Add a Comment
Comments are closed.