Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2000-12-26 14:16:55


----- Original Message -----
From: "Daryle Walker" <darylew_at_[hidden]>

> I haven't looked at the 'scoped_ptr' stuff, but aren't these suggestions
> overkill? No other object ('tcpipbuf' is noncopyable) or subclass
> ('tcpip_data_' is private) is supposed to look at the implementation. The
> 'tcpipbuf' class could take care of the destruction itself.

It depends what you mean by "overkill", I guess. The suggestions eliminate
casting, some exception-safety issues, and probably the need to write a
destructor in your class. Sounds like simplification to me. What's the
downside?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk