Hi,
I have an application that defines a hash_set as:
typedef hash_set<const char*, hash<const char*>, chunker_eqstr> StringSet;
This code compiles OK with VS6 and SGI STL library. It is patterned after the SGI STL documentations.
We are now moving to VS 2005 and the SGI STL header file is in conflict with the VS 2005 system header files.
But when I try to use VS 2005 and the VS8 STL library instead of SGI STL, I got these error messages:
" headerfile.h(71) : error C2065: 'hash' : undeclared identifier
headerfile.h(71) : error C2059: syntax error : 'const'
headerfile.h(71) : error C2947: expecting '>' to terminate template-argument-list, found '>"
It seems that the 'hash' function is a defined function in SGI STL but not in VS8 2005 STL.
Am I missing something? What is wrong with this typedef?
Thanks for any help.
Misu