Boost C++ Libraries: Ticket #3261: Can't export derived class with a data member of type std::string https://svn.boost.org/trac10/ticket/3261 <p> The attached file shows that calling BOOST_CLASS_EXPORT on a derived class that contains a data member of type std::string will fail at compilation. </p> <p> Adding </p> <pre class="wiki">namespace boost { namespace mpi { template&lt;&gt; struct is_mpi_datatype&lt;std::string&gt; : public mpl::true_ {}; } } </pre><p> will make it compile and run. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3261 Trac 1.4.3 mat087@… Mon, 13 Jul 2009 05:52:44 GMT attachment set https://svn.boost.org/trac10/ticket/3261 https://svn.boost.org/trac10/ticket/3261 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.cpp</span> </li> </ul> Ticket Matthias Troyer Thu, 06 Aug 2009 18:58:31 GMT owner, status changed https://svn.boost.org/trac10/ticket/3261#comment:1 https://svn.boost.org/trac10/ticket/3261#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">Matthias Troyer</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Matthias Troyer Thu, 06 Aug 2009 20:17:02 GMT <link>https://svn.boost.org/trac10/ticket/3261#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3261#comment:2</guid> <description> <p> The bug is confirmed and is caused by Boost.Serialization treating std::string and std::wstring as fundamental types to be handled directly by the archive. I'm thinking about how best to solve this for the skeleton&amp;content mechanism, which is the issue here. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Matthias Troyer</dc:creator> <pubDate>Thu, 06 Aug 2009 20:27:07 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3261#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3261#comment:3</guid> <description> <p> Bug is fixed and the patch will be committed to trunk and release once all regression tests are confirmed to work again </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Matthias Troyer</dc:creator> <pubDate>Thu, 06 Aug 2009 20:41:43 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3261#comment:4 https://svn.boost.org/trac10/ticket/3261#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> Ticket