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

/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(参数

posted @ 2017-05-03 16:31  AI-LEARNER  阅读(3465)  评论(0编辑  收藏  举报