I have a global function, as follows:
defined and protyped in a Repository class (a supped up container class)... And the interface is calling the function
Loan::getLoanID returns a string. Both classes compile into objects, but there is a linking error (symbol Referencing error)... Any thoughts on why it won't link would be appreciated.
Code:
template <class thing>
vector< pair<size_t,Loan> >
Sort(Vector< pair<size_t,Loan> v, thing (Loan::* by)());
defined and protyped in a Repository class (a supped up container class)... And the interface is calling the function
Code:
vector< pair<size_t,Loan> > loans = repository.getLoans();
loans = Sort<string>(loans,&Loan.getLoanID);