19 Mar
2009
19 Mar
'09
9:57 p.m.
Igor R pravi:
Passing object by reference means you want to modify it inside the function. If you only want to avoid overhead, pass it by const reference.
Perhaps I do want to... Call reset() perhaps. Does boost::shared_ptr<> const& avoid overhead better than just boost::shared_ptr<T>&?