Opened 14 years ago

Closed 12 years ago

#2483 closed Bugs (fixed)

Updating from 1.34.1 to 1.35.0-8 introduced error: ‘bad_cast’ is not a member of ‘std’

Reported by: Neeraj Owned by: Hailin Jin
Milestone: Boost 1.38.0 Component: gil USE GITHUB
Version: Boost 1.35.0 Severity: Problem
Keywords: Cc:

Description

Folks.

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:

error: ‘bad_cast’ is not a member of ‘std’

Doing the following before including the boost header in question resolved it:

#include <typeinfo>

Just a heads up

Change History (4)

comment:1 by Marshall Clow, 14 years ago

Component: NoneGIL
Owner: set to Hailin Jin

comment:2 by Hailin Jin, 14 years ago

Can you specify on which files you had to make the changes? Thanks

comment:3 by Leo Bosnjak, 14 years ago

Hi there, the same just happened to me, maybe this problem is also related to #1520 as I'm using boost 1.34.1 and gcc 4.3.2

However thanks for the tip, setting the include on top of algorithm.hpp solved the problem ;-)

comment:4 by chhenning, 12 years ago

Resolution: fixed
Status: newclosed

This has been fixed for a while. Closing ticket.

Note: See TracTickets for help on using tickets.