No surprise: your trying to make a
std::pair< CString, CPatUser >
with the couple (
Name, ThePartUser
) where the latter is a
pointer to a
CPatUser
object. If you need to store pointers then you must use
std::make_pair< CString, CPatUser *>(Name, ThePartUser);
[update]
Sorry there were naughty typos in formatting code. Either CP (as CodeProject) or CP (as Carlo Pallini) was drunk. They (the typos) should be fixed, now.
[/update]