#include #include "boost/thread/thread.hpp" struct foo { void operator()() { std::cout << "Hello, Booster!" << std::endl; } }; int main() { boost::thread thread_foo(new foo); thread_foo.run(); return 0; }