Boost C++ Libraries: Ticket #669: Boost.Multiindex + Boost.Shmem https://svn.boost.org/trac10/ticket/669 <pre class="wiki">Hi, I am trying to get a multiindex to work on a shared memory using boost.shmem. After 2 weeks I have already succeeded in creating it and placing it in a shared but for some strage reason it won't work when retrieving values. I think it has to do with the fact that the multiindex is not using offset_ptr put raw ptrs, though this shoulnd't be a problem as I am using a fixed address... Please find the code attached. You can contact me at bblasi at jblasi.com or post here as I will chech regulary. Too much for me this one! </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/669 Trac 1.4.3 joaquintides Tue, 27 Jun 2006 07:59:11 GMT <link>https://svn.boost.org/trac10/ticket/669#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/669#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=911241 Hello, I think the problem lies in your code: you forgot to add a "return" in the implementation of myHash::operator(): class myHash { public: std::size_t operator()(const MyShmString&amp; v)const { // no return here! boost::hash&lt;std::string&gt;()(v.c_str()); } }; I've added the missing return (in both processes' definition of myHash) and things work OK under MinGW 3.9, with GCC 3.4.2, Boost 1.33.1 and Shmem 0.93. Please confirm this also solves things for you. Best regards, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>nobody</dc:creator> <pubDate>Tue, 27 Jun 2006 14:32:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/669#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/669#comment:2</guid> <description> <pre class="wiki">Logged In: NO I am STUPID STUPID STUPID. I forgot a return! Thanks a lot Joaquin, you're the best! </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>joaquintides</dc:creator> <pubDate>Tue, 27 Jun 2006 18:42:27 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/669#comment:3 https://svn.boost.org/trac10/ticket/669#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket