Boost C++ Libraries: Ticket #4493: shared_array lacks get_deleter method https://svn.boost.org/trac10/ticket/4493 <p> shared_ptr has a get_deleter() method, which is very useful. shared_array does not have a get_deleter() method. </p> <p> Since the deleter for a shared_array is passed to the constructor by value, there is no straightforward way* for the caller to get a pointer or reference to it. If the caller needs access to the deleter object's state or methods, which is entirely reasonable, the caller has no way to get it. </p> <p> A get_deleter() method should be added to shared_array to meet this requirement and for consistency with the shared_ptr class. </p> <p> *True, the caller can pass the deleter wrapped in a container object that holds a reference to the deleter, but that's a contortion that should not be necessary. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4493 Trac 1.4.3 Marshall Clow Fri, 13 Aug 2010 20:46:11 GMT owner, component changed https://svn.boost.org/trac10/ticket/4493#comment:1 https://svn.boost.org/trac10/ticket/4493#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">No-Maintainer</span> to <span class="trac-author">Peter Dimov</span> </li> <li><strong>component</strong> <span class="trac-field-old">array</span> → <span class="trac-field-new">smart_ptr</span> </li> </ul> <p> shared_array is part of the smart_ptr library, not Boost.Array. </p> Ticket Peter Dimov Mon, 07 Nov 2011 18:19:26 GMT <link>https://svn.boost.org/trac10/ticket/4493#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4493#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/75390" title="Add get_deleter for shared_array. Refs #4493.">[75390]</a>) Add get_deleter for shared_array. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4493" title="#4493: Feature Requests: shared_array lacks get_deleter method (closed: fixed)">#4493</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Mon, 07 Nov 2011 18:27:17 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/4493#comment:3 https://svn.boost.org/trac10/ticket/4493#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Peter Dimov Wed, 30 Nov 2011 17:51:47 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4493#comment:4 https://svn.boost.org/trac10/ticket/4493#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/75754" title="Merge [75390] to release. Fixes #4493.">[75754]</a>) Merge <a class="changeset" href="https://svn.boost.org/trac10/changeset/75390" title="Add get_deleter for shared_array. Refs #4493.">[75390]</a> to release. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4493" title="#4493: Feature Requests: shared_array lacks get_deleter method (closed: fixed)">#4493</a>. </p> Ticket