成员函数指针和模板混用,折腾。。
摘要:template class CFooImpl { protected: void callfoo() { T* t = static_cast(this); t->foo(); } void callfoo(void(T::* f)()) { // how to call f ?? ...
阅读全文
posted @ 2016-05-22 22:24
本blog未经说明均为原创,所陈述之内容不一定全正确
posted @ 2016-05-22 22:24
posted @ 2009-06-09 22:19
posted @ 2009-05-29 19:45
posted @ 2009-05-29 19:39