Can you tell me why doing this works OK:
typedef std::map< COLORREF, SerifGDI::CColour*, std::less<COLORREF> > Map;
Map map;
for ( int i = 0; i < obj->ColourMapTablePtr->Count; i++ )
{
// Get the original colour
COLORREF crColour = RGB(0, 0, 0);
// Create an RGB colour
CMyClass* pPointer = new CMyClass;
// Insert the item into our map
map[ crColour ] = pNewColour;
}
And this fails:
class MyWrapper : public std::map< COLORREF, SerifGDI::CColour*,
std::less<COLORREF> >;
{
MyWrapper();
~MyWrapper();
Quote:
};
MyWrapper map;
for ( int i = 0; i < obj->ColourMapTablePtr->Count; i++ )
{
// Get the original colour
COLORREF crColour = RGB(0, 0, 0);
// Create an RGB colour
CMyClass* pPointer = new CMyClass;
// Insert the item into our map
map[ crColour ] = pNewColour;
}
Regards,
Chris Jordan