I am trying to invoke a function from a new thread. The function takes a bunch of parameters.
std::thread signingThread(curlWrapper->SendDataToServer,username, password, serverURL, data);
Here is the function protoype
int LibCurlWrapper::SendDataToServer(const std::string& username, const std::string& password, const std::string& serverURL, const std::vector<unsigned char> &vData)
Compiler Error
error: no matching function for call to 'std::thread::thread(, std::string&, std::string&, std::string&, std::vector&)' std::thread signingThread(curlWrapper->SendDataToServer,username, password, serverURL, data);