C ++ - 错误:类型为»std :: basic_string <char>&amp;«</char> </char>的R值的非常量引用的无效初始化»std :: basic_string <char>&amp;«

时间:2012-01-31 10:15:41

标签: c++ compiler-errors

  

可能重复:
  What does invalid initialization of non-const reference mean?

此错误消息的含义是什么?

invalid initialization of non-constant reference of the type »std::basic_string<char>&« of R-value of type »std::basic_string<char>&«

错误代码:

void Dropbox_pluginAPI::acquireAccessToken(std::string &accessToken, std::string &accessTokenSecret)
{
     client->aqcuireAccessToken(accessToken,accessTokenSecret);
}

0 个答案:

没有答案