Let’s say, i want to this thing:
std::thread(std::sin,2.9);
But i get unresolved function type error. How can i resolve it?
std::sin is overloaded, not template (why??)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depending on what headers you included, there are the following:
As you can see, there are templates involved, though that’s actually not strictly relevant here.
You simply need to inform the compiler which [potential] overload you want (probably just out of the latter two):