How we can pass inherited class to another class and call their function?

后端 未结 0 1119
Happy的楠姐
Happy的楠姐 2021-02-06 10:00
struct a {
    void function() {
        
    }
};

struct b : public a {

};

template 
struct c {
    void test() {
        T::function();
    }
};

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题