/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(參數)