【发布时间】:2012-11-07 06:18:03
【问题描述】:
我收到以下错误。
typedef std::vector<std::pair<std::string, void*> > PropInfoType;
#define REGISTER_FUNCTOR(type, func) \
template <typename OWNER> \
struct writeCharFunctor { \
void operator(PropInfoType::iterator& it)() { \
} \
};
REGISTER_FUNCTOR(char,writeChar);
MSDN 只是说这是由于macro expansion
如果我将 void operator(PropInfoType::iterator& it)() 更改为 void operator()() 它可以工作
【问题讨论】: