I have structure for storing callback function like this:
template struct CommandGlobal : CommandBase { typedef boost::function Co
If it's just the return statement, this should do the trick:
return
virtual T Execute() const { if(comm) return comm(); return T(); }
If there's more to it, specialize the template for void.
void