📅  最后修改于: 2022-03-11 14:44:52.127000             🧑  作者: Mango
struct A {
template
A(const char * fmt, Args&& ... args) {
printf(fmt,std::forward(args) ...);
};
};
struct B: public A {
template
B(const char * fmt, Args&& ... args) : A(fmt, std::forward(args) ...) {}
};