Boost logo

Boost :

From: Eyal Farago (eyalfa_at_[hidden])
Date: 2002-04-09 11:47:30


How did it solve the 'smart_ptr to this' problem?
It seems to me like a Fundamental problem when using smart pointers.

Eyal.

-----Original Message-----
From: James Kanze [mailto:kanze_at_[hidden]]
Sent: Tuesday, April 09, 2002 11:05 AM
To: boost_at_[hidden]
Subject: Re: [boost] smart pointer puzzle

brangdon_at_[hidden] (Dave Harris) writes:

|> Currently I don't use the boost pointer, mainly because of the
|> problems with multiple counts. Efficiency is another concern:
|> invasive smart pointers tend to be a lot more efficient than
|> non-invasive ones. I think I would use a boost pointer like the
|> above, though.

I pretty much pushed for its use in my last project; I imagined that it
would be part of a future standard, and is already a de facto standard,
and I generally prefer standard solutions where they work. Regretfully,
it didn't work; there were too many times we needed to generate a smart
pointer from this. In the end, we simply used my old RefCntPtr (which
is very much like the one in Scott Meyers).

-- 
James Kanze                                mailto:kanze_at_[hidden]
Conseils en informatique orientée objet/
                    Beratung in objektorientierter Datenverarbeitung
Ziegelhüttenweg 17a, 60598 Frankfurt, Germany Tel. +49(0)179 2607481
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost

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