thread_ = boost::thread( boost::function< void (void)>( boost::bind( &clientTCP::run , this ) ) );
is it possible that run has an argument like this :
void clientTCP::run(boost:function<void(std::string)> func);
and if yes how my boost::thread call should be written
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…