
28 Jul
2010
28 Jul
'10
11:36 p.m.
What's still to be done is worry about ownership of objects, my idea is to eventually somewhat model it after boost::shared_ptr that way it's easier to pass those around.
In which case you would wind up with something almost exactly like poet::monitor_ptr:
http://www.comedi.org/projects/libpoet/boostbook/doc/boostbook/html/poet/mon...
I found the resulting coupling of two orthogonal concepts (automatic locking and shared_ownership) to be unsatisfactory however, resulting in the generic_ptr library in the boost sandbox (undocumented), which allows composition of smart pointer types, plus facilities for writing generic code that manipulates pointers or pointer-like classes.
Interesting, why isn't this up for review? Philippe