Thursday, September 30, 2010

Pass by Value

Fundamental types are best passed to a function by value instead of reference.

Reference: Modern C++ Design by Andrei Alexandrescu. Addison-Wesley, 2001, p. 43

No comments:

Post a Comment