Boost logo

Boost :

From: Sean Parent (sparent_at_[hidden])
Date: 2001-11-05 14:41:04

Perhaps I'm wrong - but my read of shared_ptr leads me to believe that if I
have a special function to delete my pointer then I need to either
specialize shared_deleter<> or, I suppose, overload checked_delete<>().

Further - if I have an allocator that requires instance data I have no way
to provide that to shared_ptr.


on 11/3/01 4:23 AM, Peter Dimov at pdimov_at_[hidden] wrote:

> From: "Sean Parent" <sparent_at_[hidden]>
>> Using a trait template (Peter's approach) functions fine - But I'm trying
> to
>> get rid of the need to write a template specialization or special class to
>> use a template (not just with auto_ptr but everywhere in the STL). The
>> ultimate goal is to make the template library easier to use and eliminate
> as
>> much "boiler plate" declarations and code as possible.
> Sorry, I don't understand. There is no need to write a template
> specialization.
> --
> Peter Dimov
> Multi Media Ltd.
> Info: Unsubscribe:
> <mailto:boost-unsubscribe_at_[hidden]>
> Your use of Yahoo! Groups is subject to

Sean Parent
Sr. Computer Scientist II
Advanced Technology Group
Adobe Systems Incorporated

Boost list run by bdawes at, gregod at, cpdaniel at, john at