- How to pass an argument to boost::thread?
- thread_ = boost::thread( boost::function< void (void)>( boost::bind( &clientTCP::run , this ) ) );
- void clientTCP::run(boost:function<void(std::string)> func);
- // Pass pMyParameter through to the run() function
- boost::bind(&clientTCP::run, this, pMyParameter)
- void find_the_question(int the_answer);
- boost::thread deep_thought_2(find_the_question,42);