BB10: Use auto_ptr for clean & safe memory management.