续:增强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呢?到底是什么问题呢?嗯,我已经继续提问了,希望得到进一步的解答。
那么,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呢?到底是什么问题呢?嗯,我已经继续提问了,希望得到进一步的解答。
相关文章推荐
- 增强boost中function_traits的能力
- 再续:增强boost中function_traits的能力
- boost function_traits
- 增强J2ME的String能力-分割字符串
- boost::function与回调函数
- 使用muduo编译链接错误 undefined reference to `muduo::ThreadPool::run(boost::function<void ()()>&&)'
- folly编译错误boost::re_detail_106100::cpp_regex_traits_implementation<char>::transform解决办法
- boost::function对象 convert 函数指针
- boost之function的简单使用
- 对比基于boost::function/bind和AS3 Function回调机制
- Boost程序库学习-bind与function
- 【Boost】boost::function介绍
- 增强Delphi程序安全性的几个想法,提高反破解能力
- 以boost::function和boost:bind取代虚函数
- 为什么使用boost::function绑定类成员函数时,类的析构函数不能为虚函数
- boost::bind boost::function绑定万能函数测试2(类成员函数和虚函数)
- how to print function backtrack with boost
- 提高创新能力的20个技巧(How to Boost Your Creativity)
- 以boost::function和boost:bind取代虚函数
- boost源码剖析之:泛型编程精灵type_traits(rev#2)