/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