您的位置:首页 > 大数据 > 人工智能

续:增强boost中function_traits的能力

2006-09-12 01:30 405 查看
上一篇说过,在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呢?到底是什么问题呢?嗯,我已经继续提问了,希望得到进一步的解答。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: