"Ralf W. Grosse-Kunstleve" <[EMAIL PROTECTED]> writes: > --- David Abrahams <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] (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 [EMAIL PROTECTED] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost