| 249 | |
| 250 | template <typename U, typename V> |
| 251 | void TakeState(scoped_ptr_impl<U, V>* other) { |
| 252 | // See comment in templated constructor above regarding lack of support |
| 253 | // for move-only deleters. |
| 254 | reset(other->release()); |
| 255 | get_deleter() = other->get_deleter(); |
| 256 | } |
| 257 | |
| 258 | ~scoped_ptr_impl() { |
| 259 | if (data_.ptr != NULL) { |
no test coverage detected