Why use the following failure if not called by the constructor of the class?
updateState = boost::bind( &PhysicsObject::updateActive, this );
However, when executed at runtime, the following happens: with a call to 'what (): to empty exception :: function' exception
void PhysicsObject::setState( PhsyicsObjectState aState ) { _state = aState; if( _state == ACTIVE ) { // This branch is executed updateState = boost::bind( &PhysicsObject::updateActive, this ); } else { updateState = boost::bind( &PhysicsObject::updateExploding, *this ); } }
source share