|
Boost : |
Subject: Re: [boost] [shared_ptr] calling functions by reference
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-05-29 07:02:57
On Sun, May 29, 2011 at 12:28 PM, Bo Persson <bop_at_[hidden]> wrote:
> If you intend to pass by reference, why use a shared_ptr in the first
> place?
Because the function might want to make a copy of the shared_ptr.
Olaf
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk