c++ - Boost. Multithreading -
class accel{ public: accel(int threads, string params); private: void getfile(int from, int to); void download(int threads); }; void accel::download(int threads){ boost::thread g(&getfile(0, 1)); //<<<< }
gives error '&' requires l-value. have been doing example. how make work?
boost::thread g (boost::bind(&accel::getfile, this, 0, 1));
Comments
Post a Comment