鉴于:
//hpp template struct Demo { template U convert(const T &t); }; //cpp template template U Demo::convert(const T &t) { return static_cast(t); }
如何在cpp中显式实例化模板?(例如T是双,U是int)
template int Demo<double>::convert<int>(const double &);