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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -