That little piece of code is enough to get the problem (g++ 
-fno-exceptions -o test test.cpp) :
#include <boost/function.hpp>
int
main (int argc,
       char* argv[])
{
   boost::function0<void> foo;
   foo = boost::function0<void> ();
   return 0;
}
Snark on #gnome-hackers