Hi all,
I'm trying to set up a typedef for vector type in a header file I've named Container.h
The struct is called Student_info and is in a file called Student_info.cpp with header file Student_info.h
My code in Container.h is as follows;
#ifndef GUARD_Container_h
#define GUARD_Container_h
#include <vector>
typedef std::vector<struct> container_Student_info; // Two errors here
#endif
I am getting the following errors on the typedef line (6);
error: template argument 1 is invalid
error: template argument 2 is invalid
What am I doing wrong here?
Many thanks.