Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-02-03 18:58:02


"Ralf W. Grosse-Kunstleve" <rwgk_at_[hidden]> writes:

> --- David Abrahams <dave_at_[hidden]> wrote:
>> jhr.walter_at_[hidden] (Joerg Walter) writes:
>>
>> > I needed something with exactly boost::shared_array's interface to add
>> > reference counting to ublas. With shared_array I'm able to run the CLAPACK
>> > test suite on ublas containers.
>>
>> I think Ralf Grosse-Kunstleve did something similar in scitbx
>> (http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/cctbx/scitbx/array_family/)
>
> The type implemented in shared_plain.h (in the directory above) is a reference
> counted array type. The code is derived from the std::vector implementation in
> STLport (see copyright statement). Naming is according to Boost conventions.
>
> I did not use boost::shared_array to implement the shared_plain<T>
> type because one of our requirements is that one reference count can
> be used to manage multiple types.

Sounds like a job for a policy-based smart pointer to array to me ;-)

-Dave

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

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