An STL map I have relates char pointers to HMODULEs. Unfortunately this means that functions such as Map.count() compare the the value of the char pointer, ie the address, instead of the contents. This means that in a certain function, the char pointer passed to Map.count() always has the same value in it, but may point to a different string.
My question is, should I switch to a 'string' (which I suppose will work fine with its equality operator) or is there an easy way to make the char pointers work?



LinkBack URL
About LinkBacks



I was just mentioning an alternative.