template <class EventType>
class IEvent;
class IEventable;
typedef boost::function<void (IEventable&, IEvent&)> behaviorRef;
将模板类IEvent传递到提升函数的正确方法是什么?有了这个代码,我得到: error: functional cast expression list treated as compound expression error: template argument 1 is invalid error: invalid type in declaration before ‘;’ token
将模板传递给提升函数
你能否提供一些样品? – Ockonal 2010-06-14 21:05:27
@Ockonal:我试过。这有帮助吗? – sbi 2010-06-14 21:07:57
是的,第二个代码示例(关于结构)就是我需要的。谢谢。 – Ockonal 2010-06-14 21:15:29