|
Boost Users : |
Subject: Re: [Boost-users] shared_ptr as reference argument
From: anony (janezz55_at_[hidden])
Date: 2009-03-19 17:57:44
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>&?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net