c++错误functional:1526:9: error: no type named ‘type’ in ‘class std::result_of
生活随笔
收集整理的這篇文章主要介紹了
c++错误functional:1526:9: error: no type named ‘type’ in ‘class std::result_of
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
關(guān)于這個(gè)錯(cuò)誤,我自己的情況是thread函數(shù)形參有&引用傳值,例如:
void thread_test(vector<int> &test_vec),編譯就會(huì)報(bào)錯(cuò),去掉&就可以了,查到的其他方式并沒(méi)有能解決這個(gè)問(wèn)題,不知道是因?yàn)槭裁础?/p>
總結(jié)
以上是生活随笔為你收集整理的c++错误functional:1526:9: error: no type named ‘type’ in ‘class std::result_of的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: hbase集群 数据写入_Hbase实用
- 下一篇: s3c2440移植MQTT