Boost logo

Boost :

From: Joe Gottman (joegottman_at_[hidden])
Date: 2000-12-19 19:38:29


    I think the scoped_ptr class should have a release() function, similar
to the one in std::auto_ptr. This would help in cases like the following

int *foo() {
    shared_ptr<int> the_pointer(new int());
     //Do stuff that might throw
    return the_pointer.release();
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk