I have something like this that is incorect:
vector vec; for(int agent = 1; agent <= numAgents; ++agent) { boost::thread agentThr
or use vector<shared_ptr<boost::thread>> with code like:
vector<shared_ptr<boost::thread>>
vec.push_back(make_shared<boost::thread>(sellTickets, agent, numTickets/numAgents));
or use boost::thread_group.
boost::thread_group