IMO, if it has a constructor, you pass it by const_reference. Simple as that.
If the function then wants to do something mutable with the object, it's the function's own job to create a copy...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: monarch_dodra Search: Search took 0.02 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |