id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 3229,boost::scoped_ptr second parameter with delete operations,Stepan Koltsov ,Peter Dimov,"Requesting second parameter of scoped_ptr (and other smart pointers) templates, specifying destroy operation for pointer. Something like this (simplified code): {{{ template struct destroy_delete { static void destroy(T* t) { delete t; } }; template class scoped_ptr { ~scoped_ptr() { D::destroy(px); } }; // this I can use in my code template struct destroy_free { static void destroy(T* t) { free(t); } }; }}}",Feature Requests,closed,To Be Determined,smart_ptr,Boost 1.39.0,Not Applicable,wontfix,,