In article < >, Evan
<> wrote:
| 1) Use the standard library's auto_ptr,
| Option 1 is the most promising until you realize that the auto_ptr
| doesn't behave appropriately in most circumstances. If the stardard
| library had a painter with reference counting, then things wauld be in
| much better shape.
We're getting there...
http://anubis.dkuug.dk/jtc1/sc22/wg2...003/n1450.html
This was voted into a "Library Technical Report" just this Spring.
Vendors may ship it in namespace std::tr1 in the near future.
--
Howard Hinnant
Metrowerks