如果我声明:
class Avoidance : public Schema<std_msgs::String,prog1::Command>{
我试着
void*(Schema<std_msgs::String,prog1::Command>::*pt)();
pt=&Avoidance::frontBusy;
编译器报告我
error: cannot convert ‘void* (Avoidance::*)()’
to
‘void* (Schema<std_msgs::String_<std::allocator<void> >, prog1::Command_<std::allocator<void> > >::*)()’ in assignment
为什么?避免继承自
Schema<std_msgs::String,prog1::Command>
然后避免是模式<.....>