I'm trying to use Boost.Statechart in an iPhone development project. When I build the Hello World example in a .mm file (Objective C++) I get an error "error: no class template named 'rebind' in 'struct Machine'". If, in the same project, I build the statemachine in a .cpp file (C++) and call a C function from a .mm file it works perfectly.