RE: [Boost-users] Scoped_ptr + deleter

-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Richard Hadsell Sent: Tuesday, May 24, 2005 7:00 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] Scoped_ptr + deleter
Caleb Epstein wrote:
I'm not certain, but I would guess that overhead is the reason. Perhaps someone more closely involved in the implementation (Peter?) would care to comment.
As a user of scoped_ptr and scoped_array, I expressed a strong opinion that its memory usage remain as is, and some Boost developers agreed. If you have a way to maintain the current behavior (speed and memory footprint) as a default, you are welcome to add functionality. Otherwise, it becomes useless to me.
What about something like:
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
template <class A>
struct caller
{
static void callme(A * d)
{ delete d; }
};
template
participants (1)
-
Sohail Somani