Querying the Interest in a new AutoPtr class?

Hi all, I was wondering what the interest level is for a new auto pointer? I know you've got a few different ones already, but I believe this one has some features that make it quite unique. I based my AutoPtr from the STL auto_ptr and added some additional operator overloads to make it easier to use. The biggest feature however, is that you can specify a custom deletion function object. The custom deletion function object allows you to delete in ways other than just 'delete ptr;' For example, you can delete like this: delete [] ptr; ptr->Delete(); // Delete() calls: delete this; free( ptr ); If you want to take a look at it, it's available at: http://groups.yahoo.com/group/boost/files/AutoPtr/ I'd like to hear your suggestions. Chris Just __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail

How is this any different from shared_ptr? http://www.boost.org/libs/smart_ptr/shared_ptr.htm#constructors On Sat, 12 Feb 2005 21:25:42 -0800 (PST), Chris Just <cpjust@yahoo.com> wrote:
Hi all,
I was wondering what the interest level is for a new auto pointer? I know you've got a few different ones already, but I believe this one has some features that make it quite unique. I based my AutoPtr from the STL auto_ptr and added some additional operator overloads to make it easier to use. The biggest feature however, is that you can specify a custom deletion function object.
The custom deletion function object allows you to delete in ways other than just 'delete ptr;' For example, you can delete like this: delete [] ptr; ptr->Delete(); // Delete() calls: delete this; free( ptr );
If you want to take a look at it, it's available at: http://groups.yahoo.com/group/boost/files/AutoPtr/
I'd like to hear your suggestions.
Chris Just
__________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Cory Nelson http://www.int64.org

Chris Just wrote:
Hi all,
I was wondering what the interest level is for a new auto pointer? I know you've got a few different ones already, but I believe this one has some features that make it quite unique. I based my AutoPtr from the STL auto_ptr and added some additional operator overloads to make it easier to use. The biggest feature however, is that you can specify a custom deletion function object.
The custom deletion function object allows you to delete in ways other than just 'delete ptr;' For example, you can delete like this: delete [] ptr; ptr->Delete(); // Delete() calls: delete this; free( ptr );
There is a policy-based pointer, based on the Loki SmartPtr, coming up for review soon which can emulate an auto_ptr and allows deletion policy to be specified as part of the 'storage policy'. Also, see move_ptr: http://www.kangaroologic.com/move_ptr/
If you want to take a look at it, it's available at: http://groups.yahoo.com/group/boost/files/AutoPtr/
I only looked very briefly, but I don't see how your auto_ptr can be returned from functions. Also, why do you need the m_Owner variable? Best, Jonathan
participants (3)
-
Chris Just
-
Cory Nelson
-
Jonathan Turkanis