I\'ve got this function:
template void Inventory::insertItem(std::vector& v, const T& x) { std::vector<
Try this instead:
typename std::vector::iterator it;
Here's a page that describes how to use typename and why it's necessary here.