Boost C++ Libraries: Ticket #2483: Updating from 1.34.1 to 1.35.0-8 introduced error: ‘bad_cast’ is not a member of ‘std’ https://svn.boost.org/trac10/ticket/2483 <p> Folks. </p> <p> I updated my system from Ubuntu Hardy to Ubuntu Intrepid, and my codebase broke with the following error in some of the GIL related header files: </p> <p> error: ‘bad_cast’ is not a member of ‘std’ </p> <p> Doing the following before including the boost header in question resolved it: </p> <p> #include &lt;typeinfo&gt; </p> <p> Just a heads up </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2483 Trac 1.4.3 Marshall Clow Tue, 11 Nov 2008 00:34:25 GMT component changed; owner set https://svn.boost.org/trac10/ticket/2483#comment:1 https://svn.boost.org/trac10/ticket/2483#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Hailin Jin</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">GIL</span> </li> </ul> Ticket Hailin Jin Fri, 20 Feb 2009 19:17:49 GMT <link>https://svn.boost.org/trac10/ticket/2483#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2483#comment:2</guid> <description> <p> Can you specify on which files you had to make the changes? Thanks </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Leo Bosnjak</dc:creator> <pubDate>Tue, 17 Mar 2009 15:51:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2483#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2483#comment:3</guid> <description> <p> Hi there, the same just happened to me, maybe this problem is also related to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1520" title="#1520: Patches: Missing include statements (closed: fixed)">#1520</a> as I'm using boost 1.34.1 and gcc 4.3.2 </p> <p> However thanks for the tip, setting the include on top of algorithm.hpp solved the problem ;-) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chhenning</dc:creator> <pubDate>Fri, 06 Aug 2010 18:26:12 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2483#comment:4 https://svn.boost.org/trac10/ticket/2483#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This has been fixed for a while. Closing ticket. </p> Ticket