I am getting following error.
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 just saying that this is due to macro expansion
If I change void operator(PropInfoType::iterator& it)() to void operator()() it works
It probably should contain
because the
operatorkeyword should be followed by the operator itself.