Compiler Error: Unsigned vs Signed Integer Expression
RentalSystem.cpp:357: warning: comparison between signed and unsigned integer expressions
I have a number of these errors in basically the same situation. Line 357 is :
Code:
for ( i = 0; i < m_vehicleVector.size(); i++ )
m_vehicleVector is declared as :
Code:
vector<T> m_vehicleVector;
It's declares as a private data member in a class template RentalSystem.cpp.
Code:
RentalSystem <NewCar> Rental
With NewCar being another class. Now I'm new to templates, so I'd imagine I'm doing something wrong with my templates, but I can't see it. Any ideas?
Thanks in advance,
Chris