noob is still experimenting with templates here. Trying to write a message processing class template
template <typename T> class MessageProcessor {
foo( void ) {
}
private: T *t_
};
Everything is defined in the header file. I built and tested my class, and everything is fine. Now I am trying to do this:
template <typename T> class MessageProcesor {
foo(void) {
t_->getMessageSender<MessageType>();
}
private: T *t_;
};
However, this line gives me the error of an incorrect type expression before the '>' token.
I added the necessary header files to determine what MessageType is. I have used this feature many times before, just not in this context.
, , (?) undefined (?). , "". "" "", , .
, . , , , "" .