|
Boost : |
From: Alisdair Meredith (alisdair.meredith_at_[hidden])
Date: 2002-09-21 16:28:09
David Abrahams wrote:
> Furthermore:
>
> handle& operator=(handle const& rhs)
> {
> impl.reset(new body(*rhs.impl));
> }
>
> It even gives the strong guarantee.
> What /is/ the rationale for swap?
For cases where the body is not copy constructible?
Not sure how common that case is, but I know I have examples in my code.
-- AlisdairM
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk