Home > Web Site Updates > CMapEx v1.0

CMapEx v1.0

June 11, 2009

It’s been a while since I released some new code on my web site as opposed to updates to existing code, so here goes<ggg>. CMapEx is a class derived from the MFC template class "CMap". It is designed to allow the "CompareElements" method which CMap uses at runtime, to be specified via a template parameter rather than via a global function. This approach is much more flexible and allows the way data is stored in the map to be configured at an instance level, rather than the annoying limitation in CMap which due to its design only allows you to control this globally i.e. if you have multiple map instances which happen to store the same types of data, then all of these instances must use the same "CompareElements" method. This is quite a limitation which I have just recently encountered in one of my projects.

Advertisements
Categories: Web Site Updates
%d bloggers like this: