Smart pointers are hard to get right. As small as they are, smart pointers can make the difference between failure and success. The implementation presented uses a new class design technique - Policy Classes. Policy Classes are specialized structural and behavioral entities that decide one well-defined aspect of a complex behavior. The advantage of Policy Classes is that they can be combined freely in concrete classes, thus leading to combinatorial reuse.
Clients can define their own policies.
Andrei holds an MS degree in Electronics from the Polytechnic University of Bucharest.