Quote:Original post by Sc4Freak
boost::shared_ptr is uaually also 4 bytes larger than a regular pointer, so that may be something to take into consideration.
Small enough for me - Thanks
Quote:Original post by Sc4Freak
boost::shared_ptr is uaually also 4 bytes larger than a regular pointer, so that may be something to take into consideration.
void funcPassByRef( const boost::shared_ptr<bigObject>& b);
Quote:This would imply that you have control over the function's signature. And if you do, then it's preferable to use a 'passing style' which correctly represents ownership: