jeudi 21 septembre 2017

Attempt to use a deleted function when launching a thread in clang

I am currently trying to launch the following function with the signature

void test::search(const std::string & Haystack, const std::string& Needle);

I am trying to call a thread using the following code

std::thread t(&test::search,this, textA,textB);

t.detach();

and I am getting the error /Applications/http://ift.tt/1MCHFEE: Attempt to use a deleted function

I am using xcode any suggestions ? I am not sure what I might be doing wrong

Aucun commentaire:

Enregistrer un commentaire