I am having some trouble with vector declarations in the header file of a C++ class I am making. My entire header file looks like this:
#ifndef PERSON_H #define PERSON_H #include "Message.h" #include <string> #include <vector> class Person { public: Person() {}; Person(std::string emailAddress); private: vector<Message> inbox; vector<std::string> contacts; std::string emailAddress; }; #endif PERSON_H My error occurs on the lines following the "private" declaration (where I declare my vectors). The error I am getting is C4430 - missing type specifier and and C2238 - unexpected tokens preceding ';'
Thank you for any help.