Quote:
Originally posted by Fergal21
AdDav,
I have a template function as follows:
template <class Type> void Delete(Type * list)
{
//do something
}
and its prototype in the header file is:
template <class Type> Delete(Type);
And I call the function as follows:
Delete(list_head);//list head is a pointer to a structure
I get an unresolved external:
int __cdecl Delete(struct V_FSM *)" (?Delete@@YAHPAUV_FSM@@@Z)
Whats wrong with this code?
1. unless it's a typo, your prototype doesn't match the implementation - the argument has to be a pointer.