if(std::get<int>(line) <= 0)
{
close(fd);
pthread_cancel(admin_timeout);
pthread_exit(0);
}
error: error: no matching function for call to ‘get(std::tuple<int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)’
if(strcmp(std::get<std::string>(line).c_str(), MANAGER_AUTH_KEY))
{
close(fd);
pthread_cancel(admin_timeout);
pthread_exit(0);
}
error: no matching function for call to ‘get(std::tuple<int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)’
memcpy(pass, std::get<std::string>(line).c_str(), std::get<std::string>(line).length());
error: error: no matching function for call to ‘get(std::tuple<int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)’
this happens when i compile with g++ -std=c++11 when the code is erased it compiles but when erased doesnt work properly
question from:
https://stackoverflow.com/questions/66046810/error-no-matching-function-for-call-to-fix 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…