
24 Feb
2009
24 Feb
'09
6:36 p.m.
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?