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

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

原文地址:https://www.cnblogs.com/rebot/p/6802560.html