次のエラーが発生します。
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()()
と動作します