eg.struct A {A(int); //#1template A(T); //#2};template<> A::A(int i){} //#3void test(){//在此处如何调用#3??????}
新手,来灌灌水,别介意!
struct是结构体吧,当然在C++,它也算是一种特殊的类,你的模板构造函数特化后,该怎么用还是怎么用,它实例化对象的时候会自动调用