This rule is Obsolete | |
Synopsis: | Minimize the number of temporary objects that are created as return values from methods/functions or as arguments to methods/functions |
Language: | C++ |
Severity Level: | 9 |
Category: | Object Life Cycle |
Description: |
Preferably, use a reference when passing on or returning objects. Be aware, that a reference to local non-static object should not be returned. See also [OLC#003]. |
Literature References: |
Ellemtel Rec. 46 |