Boost C++ Libraries: Ticket #551: Don't know how to get multiIndex container index shared ptrs https://svn.boost.org/trac10/ticket/551 <pre class="wiki">Hello! My email address is sean@mssengineering.com. I would like to use const_mem_fun of multiIndex to index sharedPtrs. Maybe there is an easy way to do this, but there doesn't seem to be any way obvious to me that is really easy. It would be nice if this was a feature of the multiindex container. Any suggestions and/or work arounds that would make this possible would be great. Thank you, Sean Zlatnik </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/551 Trac 1.4.3 joaquintides Tue, 17 Jan 2006 07:43:23 GMT <link>https://svn.boost.org/trac10/ticket/551#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/551#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=911241 Hello Sean, I'm not sure this is what you're looking for, but you can use const_mem_fun just as if you were indexing regular objects instead of shared_ptrs to them, and everything should work fine. This feature of Boost.MultiIndex key extractors is explained in detail at: http://boost.org/libs/multi_index/doc/advanced_topics.html#a dvanced_key_extractors Please find attached an example showing how to use const_mem_fun on a given class element for indexing shared_ptr&lt;element&gt;s. Is this what you're after? Thanks for using Boost.MultiIndex, best regards, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>joaquintides</dc:creator> <pubDate>Mon, 30 Jan 2006 09:05:07 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/551#comment:2 https://svn.boost.org/trac10/ticket/551#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket