From: Greg Colvin (greg_at_[hidden])
Date: 2002-03-25 19:00:47
So perhaps the other guy should make his sharing policy
of his C interface clear enough for you to follow?
Failing that you should probably download the free Boehm
garbage collector or buy the Geodesic Systems memory
manager, unless you want to do the platform-dependent
coding required to distinguish pointers to objects of
static, auto, and dynamic storage duration. If boost
had such code for enough platforms we could use it for
smarter pointers. Until then shared_ptr just isn't
going to work for you.
----- Original Message -----
From: "E. Gladyshev" <egladysh_at_[hidden]>
Sent: Monday, March 25, 2002 10:11 AM
Subject: Re: [boost] plain pointers and shared_ptr
> Yes it will. foo() doesn't need to know anything
> about the deleter, as long
> as it takes a shared_ptr.
No, it won't :) foo() dosn't take a shared_ptr.
It is the topic of this discussion that foo()
takes plain pointers not shared_ptr<>, see the
Unfortunately the other guy decided
that foo() interface must support C as well
and we cannot change it.
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
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