0
我收到以下错误。错误C2544:期望的')'运营商'()'
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()()
它的工作原理