*we release and the acquire the pointer with the Linked_ptr in parameter
*/
Linked_ptr& operator=(const Linked_ptr& r)
{
    if (this != &r) {
        release();
        acquire(r);
    }
    return *this;
}
views:
66answers:
1
                
                A: 
                
                
              
            If your class has "move" semantics in the copy constructor/assignment operator like std::auto_ptr, then you can't store it in containers, since they expect copy semantics. However, the best way to find out is to make a vector of them, push in a few million, destroy the vector, and see if you get a memory leak.
                  DeadMG
                   2010-06-03 11:05:24