/usr/include/c++/4.8/functional:1697:61: error: no type named ‘type’ in ‘class std::result_of


/usr/include/c++/4.8/functional:1697:61: error: no type named ‘type’ in ‘class std::result_of<std::_Mem_fn<void

 

看的上面的錯誤。 之后Google 了,結合下面兩個鏈接才解決。

 

https://segmentfault.com/q/1010000004413576

 

http://stackoverflow.com/questions/28950835/c-error-no-type-named-type-in-class-stdresult-ofvoid-stdunordered

 

一個是 第二個參數加 this 第三個加 std::ref(參數


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM