I'm attempting to create a strongly typed collection of Vehicle objects in C++. I've been pondering why this won't compile for awhile and I can't figure it out. Anybody?
Error:Code:#ifndef VEHICLECOLLECTION_H
#define VEHICLECOLLECTION_H
#include <list>
class VehicleCollection
{
public:
VehicleCollection();
~VehicleCollection(void);
private:
list<Vehicle> lst;
};
#endif
error C2143: syntax error : missing ';' before '<'