jeudi 31 octobre 2019

How to resolve the ambiguity in the function passed to boost thread

I want to create a new thread using boost , the function RenderOut is a member of the class BlueOut.

the function is overloaded and how do i resolve this ambiguity while passing itto the boost thread.

void BlueOut( int i);
void BlueOut( std::string str);


boost::thread* thr = new boost::thread(boost::bind ( &BlueOut::RenderOut , &blueout ));

Aucun commentaire:

Enregistrer un commentaire