Handle

Reference counting handle.

browse trunk

handle.h

This reference counting handle is not thread safe (doesn't use atomic counters).

The extra tid-bits it adds over a boost shared_pointer (for example) include name demangling and automatic upcasting, throwing BadCast? if needed. There is also a version for array pointers.

Thread-safe reference counting handle

This is written, but not up here yet. It uses atomic counters and an "intrusive" reference count -- both necessary requirements for thread safety.