Boost logo

Boost Users :

Subject: Re: [Boost-users] scoped_ptr::release (again)
From: Nat Goodspeed (nat_at_[hidden])
Date: 2009-02-24 13:36:14


Steven Watanabe wrote:

> Nat Goodspeed wrote:

>> If I have a class that supports assignment, and my class uses
>> scoped_ptr to manage some resource...

> The question is not whether swap is useful, but whether it should
> be part of scoped_ptr rather than another smart pointer.

Of course you're right.

But if scoped_ptr is in all other ways the best tool for the job, should
my class's requirement for an assignment operator force me to change to
another smart pointer instead?


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