-
typedef error messages
trying to compile and gettings these errors regarding the listed typedef line. ideas?
Code:
typedef map<std::string, int, less<std::string>> Wordcount;
Wordcount wc;
c:\...\find.h(5) : error C2143: syntax error : missing ';' before '<'
c:\...\find.h(5) : error C2059: syntax error : '<'
c:\...\find.h(6) : error C2146: syntax error : missing ';' before identifier 'wc'
c:\...\find.h(6) : error C2501: 'Wordcount' : missing storage-class or type specifiers
c:\...\find.h(6) : fatal error C1004: unexpected end of file found
-
Code:
typedef std::map<std::string, int, std::less<std::string> > Wordcount;
Wordcount wc;
-