Original Post
I'm working on a project and I want to typedef multimap to a shorter name.
So, I do this...
Records* is a pointer to a struct
but then the compiler likes to complain that it can't do that because I'm missing a ',' somewhere and that there's no type after the multimap so it just ignores that.
Here are the errors/warnings it gives me:
Any help in getting this to work would be appreciated.
I'm learning, just like the best of us...
Ok, now assume a spherical cow...
[edited by - Soulkeeper on October 30, 2002 2:32:31 PM]
[edited by - Soulkeeper on October 30, 2002 2:32:52 PM]
typedef multimap<WORD, Records*, greater<WORD>> RECORD_MAP;
error C2146: syntax error : missing ',' before identifier 'RECORD_MAP'
error C2065: 'RECORD_MAP' : undeclared identifier
error C2143: syntax error : missing '>' before ';'
warning C4091: 'typedef ' : ignored on left of 'class std::multimap' when no variable is declared