All pastes #732422 Raw Edit

Someone

public text v1 · immutable
·published 2007-10-10 23:33 UTC
rendered paste body
faux@codd:~$ cat main.cpp
#include <boost/foreach.hpp>
#include <boost/thread.hpp>
#include <boost/bind.hpp>

int bar(int i)
{
                                                                                        return ++i;
}

int main()
{
                                                                                        boost::thread t(boost::bind(&bar, 5));
                                                                                        t.join();
}

faux@codd:~$ g++ -I ~faux/include/boost-1_34_1 main.cpp ~faux/lib/libboost_thread-gcc41-mt.a -lpthread
faux@codd:~$