续:增强boost中function_traits的能力

上一篇说过,在function_traits里面加入成员函数类型traits的工作纯粹是体力活,那么原作者没有理由“忽略”这个方面——毕竟他已经做了绝大多数的体力活,这个type_traits库就是大智慧和大工作量“完美结合”的产物。 
那么,why not?就这个问题我专门写信给作者John Maddock,他的回答让我不太理解了:

I don’t think this is quite the right approach: function_traits was
deliberately written *not* to work with function-pointers – since you can
always strip the pointer off before passing the type to function_traits –
but handling member function pointers raise some interesting wider
questions
.

为什么会有wider question呢?到底是什么问题呢?嗯,我已经继续提问了,希望得到进一步的解答。

相关阅读

有话想说?请留下评论吧~~如果喜欢我的blog,欢迎订阅~~

评论

还没有任何评论。

留下评论

(必需)

(必需)