Angus Leeming <[EMAIL PROTECTED]> writes:

| Apologies for the off-topic nature, but you're the best C++ programmers I 
| know ;-)
>
| Boost has shared_ptr and shared_c_ptr and scoped_ptr but no scoped_c_ptr 
| which leads to the thought that actually all these are the same, save for the 
| function they call in their d-tor.

the shared_c_ptr is not boost's it is ours.

| So why don't they parameterise that function? You could imagine this 
| parameterised scoped_ptr  calling some arbitrary function as it goes out of 
| scope. Fantastic, for example, if I'm using c-style structs that contain 
| pointers themselves and that have been malloc-ed into existence.
>
| I wrote a small piece of example code that does this. Attached.
>
| Question is, am I being daft, or should I send my inspiration to boost ;-)

they have been discussing this up and down for the last year.

-- 
        Lgb

Reply via email to