阅读背景:

将超类函数作为非typename模板参数传递

来源:互联网 

Suppose you have

假设你有

  struct A{
  void f(){}
};


struct B:public A{
};


template<typename C,void (C::*f)()>
struct Call{

  void operator()(C* c){
    (c->*f)();
  }
};
  struct A{
  void f



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: