C++(template模板 && 类模板 碰到继承)
类模板,碰到继承
templateclass Base{public:T m_A;};class Child :public Base{};templateclass Child2 :public Base{public:T1 m_B;};void test(){Child2child;}int main(){return 0;}
类模板,碰到继承
templateclass Base{public:T m_A;};class Child :public Base{};templateclass Child2 :public Base{public:T1 m_B;};void test(){Child2child;}int main(){return 0;}